plugin-icon

AC Custom Loop Shortcode

제작자: Richie Arnold·
A simple WordPress plugin that creates a shortcode to loop through posts, pages, or custom post types and display them anywhere on your site.
버전
1.7.1
활성화된 설치 항목
20
최근 업데이트일
Jan 15, 2025
AC Custom Loop Shortcode

Easily display posts, pages, custom post types or taxonomy terms in content areas using a customizable shortcode. Display your latest posts, group by taxonomies, display your post tags or categories, use custom templates with Timber for Twig support.

Shortcode Options and Examples

Display a specific post type: [ac_custom_loop type=”foo”] This displays posts from the foo custom post type.

Display a specific post type and use a timber template: [ac_custom_loop timber=’true’ type=”foo”] This displays the same as the previous example but uses a nice timber template.

Display posts with specific tags: [ac_custom_loop type=”post” tax=”tag” term=”foo”] This displays posts tagged with foo.

Group posts by taxonomy (e.g., categories and tags): [ac_custom_loop type=”post” subtax=”category,tag”] Groups posts by categories, then by tags within each category.

Exclude posts by specific tags: [ac_custom_loop type=”post” tax=”post_tag” term=”foo,bar” exclude=”baz”] This displays posts tagged with foo and bar, but excludes those tagged with baz.

Display post tag terms: [ac_custom_loop type=”category” tax=”post_tag” ] This displays all your category terms and link to those post.

Use a custom template for loop display: To use a custom template, copy loop-template.php from the plugin folder to the root of your theme folder and modify as desired. You can also create templates for specific post types (e.g., loop-template-post.php).

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.7.4
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.