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

Show a post slider (WordPress Post Slider block)

Build Your App · AppPresser 文档

Show a post slider (WordPress Post Slider block)

本文尚未翻译,因此以英文显示。

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 newest posts as big cards that people swipe left and right. It is good for top news at the top of a page.

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 Slider, 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 Slider block in the editor with Pager turned on, and settings for Slides Per View, Loop, Autoplay, Space Between and Customize Posts Displayed, and the post slider loaded in the App Preview with the post Back in the Boathouse at the top

What you see in the app

Your posts show as big picture cards. People swipe to see the next one. The dots under the slider show how many slides there are.

The post slider in the App Preview showing one post card with dots underneath

With Slides Per View set to 2, two slides show side by side.

The post slider in the App Preview with Slides Per View set to 2, showing two narrow cards side by side

If your post titles are long, use 1 slide per view. Narrow slides can break long words in the middle.

Settings

Swipe sideways to see the rest of this table.

SettingWhat it does
PagerShows dots under the slider. On at the start.
Slides Per ViewHow many slides show at once.
LoopGoes back to the first slide after the last one. Off at the start.
AutoplayMoves to the next slide by itself. Off at the start.
Space BetweenThe space between slides.
Customize Posts DisplayedShows a different list of posts. For advanced users. Off at the start.

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 one post or page (Single Post or Page block)

这篇文章对您有帮助吗?

没有找到?

我们的支持团队可协助解决设置、构建和应用商店相关问题。