Complete method of displaying a list of posts with Blocksy Post shortcode

in using WordPress When building a website, many people want to display a list of blog posts on the home page or any page.Blocksy Theme comes with [bloxy_post] Shortcodes provide a flexible solution with a single line of code to insert elegantly laid out post cards into a page.

This article will present [bloxy_post] The basic usage, parameter settings and style adjustment methods for users who don't use builders.

图片[1]-Blocksy 主题短代码使用指南:[bloxy_post] 插入文章列表的方法

basic usage

To show the latest posts, simply go to the backend page editor and insert "short code" module and then paste it:[bloxy_post]

图片[2]-Blocksy 主题短代码使用指南:[bloxy_post] 插入文章列表的方法

After publishing the page, the list of articles is automatically displayed in a neat and beautiful layout.

图片[3]-Blocksy 主题短代码使用指南:[bloxy_post] 插入文章列表的方法

Control the number of displays and paging

For example, want to show only the three most recent articles and hide thepaging function, can be written like this:[bloxy_post posts_per_page="3" pagination="no"]

图片[4]-Blocksy 主题短代码使用指南:[bloxy_post] 插入文章列表的方法

What this code does:

  • Limit display to three articles
  • Do not show the page break button

The front-end effect will be rendered like this.

图片[5]-Blocksy 主题短代码使用指南:[bloxy_post] 插入文章列表的方法

Customize the appearance of styles

This shortcode inherits the blog style settings from the Blocksy customizer. In the backend, go to "Appearance > Customize > Blog Posts" to adjust the appearance of the card.For more on blog style settings in the Blocksy customizer click here.

图片[6]-Blocksy 主题短代码使用指南:[bloxy_post] 插入文章列表的方法

Example:

  • Remove rounded corners for a more square card
  • Hide article author, publish date, etc.
  • Keep only the featured image, title and abstract for a clean style

Note that the short code does not refresh the style preview of the customizer in real time, you need to manually refresh the page to see the effect.

图片[7]-Blocksy 主题短代码使用指南:[bloxy_post] 插入文章列表的方法

summarize

this oneshort codeIt can be applied to the home page, inner pages, landing pages, and any other location that supports shortcodes and is suitable for buildingblog (loanword)Block, recommended articles board or categorized content display module. No additional plugins required, fast loading and clear structure.

Recent Updates


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:托尼屎大颗
THE END
If you like it, support it.
kudos1412 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments