這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

AC Custom Loop Shortcode

描述

A simple WordPress plugin that creates WordPress shortcode that will loop through posts, pages, or custom post types and display them on your website or blog. A typical use would be to show your latest post on your homepage.

安裝

Use WordPress’ Add New Plugin feature, searching “AC custom loop”, or download the archive and:

  1. Upload the plugin files to the /wp-content/plugins/ac-wp-custom-loop directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Add the shortcode [ac_custom_loop] to the content area of any page, post or custom post type or to any widget that supports shortcode.
  4. By default the shortcode will display your latest 4 post, you can use the ‘type’ and ‘show’ arguments to customise the type of post that are shown and how many eg. [ac_custom_loop type=”page” show=”3″] would show the last three published pages.

常見問題

Can I use my own template to display the looped posts?

Yes you can! Simply copy loop-template.php from the plugin folder to the root of your theme folder and edit as needed.
You can also create a template for each post type such as loop-template-post.php or loop-template-page.php or loop-template-my-custom-post.php

評價

There are no reviews for this plugin.

貢獻者及開發者

“AC Custom Loop Shortcode” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 AC Custom Loop Shortcode 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.5 (2021-04-04)

  • Fix release issues.

1.4.3 (2019-12-06)

  • Fix release issues.

1.4.2 (2019-12-24)

  • Fix shortcode argument issues.

1.4.1 (2019-12-06)

  • Fix release issues.

1.4.0 (2019-12-05)

  • Added ids param to shortcode.
  • Added post type templates.
  • Added Timber template integration

1.1.0 (2018-10-16)

  • Added optional excerpt to the default template.
  • Added default post order (post = date, everything else = menu_order).

0.1.1 (2018-10-13)

  • Added function to override template with the users own template
  • Added GPLv2 licence
  • Fixed some typos

0.1.0 (2018-10-07)

  • Initial version on WP repository