End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Show your post categories (WordPress Post Category List block)

Build Your App · AppPresser Docs

Show your post categories (WordPress Post Category List block)

Dit artikel is nog niet vertaald en wordt daarom in het Engels getoond.

Your app journey: step 4 of 9, Add pages and features. New here? Read Start here: build your app with AppPresser first.

What you'll do: Show your post categories as cards that people tap to see the posts in each one. A category is a group of posts, like "News" or "Events".

Before you start

Add the block

  1. In the left menu, under Customization, click Custom Pages.
  2. Click the name of the page you want to change. To make a new page instead, click Add New Page, type a title, keep Page Builder selected and click Create Page.
  3. Below the last block on the page, click Add Block.
  4. In Search blocks…, type WordPress Post Category List, then click the block. It is added to the bottom of the page.
  5. Leave the settings as they are, or change them. See Settings below.
  6. Click Save Changes at the top of the editor.
  7. To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.

The WordPress Post Category List block in the editor with Post Type, Customize Categories, Display and Infinite Scroll

What you see in the app

Each category shows as a card. The block shows all your categories. You do not pick them one by one.

Categories such as Behind the Music, Community, Merch, News and Releases shown in the App Preview

People tap a card to see the posts in that category, and tap the back arrow to return to the list.

The Tour category open in the App Preview, listing its posts with pictures

Settings

Swipe sideways to see the rest of this table.

SettingWhat it does
Post TypeIt starts on Posts.
Customize CategoriesIt starts as per_page=15&hide_empty=true. This shows up to 15 categories and hides empty ones. To show more, change 15 to a larger number.
DisplayCard (the start setting) or List.
Infinite ScrollLoads more when people reach the bottom. Off at the start. Use it only if nothing else is below this block.

The block in the editor with Display set to List

Tips

Tips

  • To move a block, drag it by its handle (the dots on the left). Click the arrow to fold it closed.
  • To copy a block, click the Duplicate icon.
  • To turn a setting on or off, click the switch itself, not the words next to it.
  • After you save, open the page in the App Preview and check your changes.

Careful: The trash icon removes a block right away. Check before you click.

You're done when the block shows on your page in the App Preview.

Next step

Show a post slider (WordPress Post Slider block)

Was dit nuttig?

Kunt u het niet vinden?

Ons ondersteuningsteam kan helpen bij het instellen, bouwen en app store vragen.