该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Post List with Load More

描述

Loading more posts is made asynchronous (using AJAX) to ensure seamless user experience.

The plugin is shipped with two basic layouts: Grid and List.

For ease and simplicity layouts styles are kept basic, so it should reflect whatever styles provided by your active theme and you don’t have to overwrite styles for each and every element of the layout.

Features

  1. Asynchronous pagination to ensure unwanted reloading and best reading experience.
  2. Comes with flexible custom block with a bunch of settings.
  3. Pre-built layouts for getting started easily.
  4. Option to load more posts ‘On Scroll’ or ‘On Button Click’.
  5. Dynamic shortcode generator so you don’t have to remember different shortcode parameters.

屏幕截图

  • Admin – Block with settings.
  • Admin – Plugin settings (for shortcode version).
  • Admin – Generate shortcode.
  • Frontend – Grid layout.
  • Frontend – List layout

区块

该插件提供了1个区块.

  • Post List with Load More Display the list of posts anywhere on your site.

安装

  1. Go to Dashboard > Plugins > Add New.
  2. Search for ‘Post List with Load More’ in Search plugins… textbox and hit Enter.
  3. Install & Active the ‘Post List with Load More’ plugin.
  4. You’re done!

Usage

There are a couple of ways you can display posts:
1. Custom Block – If your website is running on recent WordPress version and is using Block Editor for content editing then using Block is the easiest way to display posts. I hope you would love intuitive block settings which should show live preview of the changes you make.
* Go to Dashboard > Edit post/page > Click ‘Block Inserter’ from top-left corner > Search or Select ‘Post List with Load More’.
* Try changing block settings per your need and you’re done.
1. Shortcode – If your website is running on older WordPress version (i.e. before v5) then you can still make most out of the plugin through Shortcode. You can generate shortcode dynamically by changing several fields depending on your needs via plugin settings page.
* Go to Dashboard > Settings > Post List with Load More.
* ‘Settings’ tab will let you choose Layout Style and Load More posts option.
* ‘Generate Shortcode’ by changing fields depending on your requirement and copy the generated shortcode.
* Go to Dashboard > Edit post/page > Click ‘Block Inserter’ from top-left corner > Search or Select ‘Shortcode’ block and paste the copied shortcode.

常见问题

Does this plugin support custom post type?

Yes, it does.

Does this plugin allow me to list the posts filtered by custom taxonomy?

Yes. Absolutely! You can use custom taxonomies registered with your WordPress installation in order to filter the posts by.

What if I wish to use shortcode in file?

You can always add snippet like <?php echo do_shortcode('[post_list_with_load_more]'); ?> in your code in order to render post list from your code.

评价

2020 年 6 月 5 日
It does it’s intended job. It doesn’t have any fancy CSS templates but I prefer it this way, I can add my own CSS without changing to much. Well done sir! EDIT ————- And support is awesome!
阅读所有1条评价

贡献者及开发者

“Post List with Load More” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Post List with Load More」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Post List with Load More”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.0.1 – January 03, 2023

  • Fixed broken shortcode generator.
  • Updated screenshots.

2.0.0 – January 01, 2023

  • Added block support.
  • Restructured code and use of composer for developers’ ease.
  • Updated assets with consistent design.

1.0.5 – December 16, 2022

  • Fix – Load more functionality broken with recent WordPress release.
  • Fix – minor phpcs warnings.

1.0.4 – April 19, 2021

  • Fix – Empty post listing if no categories selected.
  • Fix – Empty space before ending shortcode.

1.0.3 – June 03, 2020

  • Translation support for ‘Load More’ button added.

1.0.2 – June 02, 2020

  • Add multilingual support.

1.0.1 – December 04, 2019

  • Follow standard naming conventions.

1.0.0 – December 04, 2019

  • Initial release