這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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 個可供 Gutenberg/區塊編輯器使用的區塊。

  • 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