Title: AC Custom Loop Shortcode
Author: Richie Arnold
Published: <strong>10 ຕຸລາ 2018</strong>
Last modified: 15 ມັງກອນ 2025

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/ac-custom-loop-shortcode/assets/banner-772x250.png?rev=1956262)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/ac-custom-loop-shortcode/assets/icon-256x256.png?rev=1956262)

# AC Custom Loop Shortcode

 ໂດຍ [Richie Arnold](https://profiles.wordpress.org/ambercouch/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/ac-custom-loop-shortcode.1.7.1.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/ac-custom-loop-shortcode/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/ac-custom-loop-shortcode/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/ac-custom-loop-shortcode/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/ac-custom-loop-shortcode/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/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`).

## ການຕິດຕັ້ງ

 1. Install via WordPress Add New Plugin feature by searching “AC Custom Loop,” or 
    upload the plugin files to `/wp-content/plugins/ac-wp-custom-loop`.
 2. Activate the plugin via the ‘Plugins’ screen in WordPress.
 3. Use `[ac_custom_loop]` shortcode in any page, post, or widget supporting shortcodes.
 4. The default setup displays your latest 4 posts. Customize with attributes like `
    type` and `show`, e.g., `[ac_custom_loop type="page" show="3"]` to display the 
    latest three pages.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

### How do I show posts from a specific post type?

Use `[ac_custom_loop type="your_post_type"]` to show posts from a specific custom
post type.

### Can I display posts with a specific taxonomy term?

Yes! Use `[ac_custom_loop type="post" tax="tag" term="your_term"]` to filter posts
by taxonomy term.

### How can I group posts by taxonomies?

Use `[ac_custom_loop subtax="category,tag"]` to group posts by taxonomies.

### Can I exclude specific terms?

Yes, add `exclude="term"` to exclude posts tagged with that term.

### Can I use custom templates?

Absolutely! Copy `loop-template.php` to your theme directory or create post-type-
specific templates, such as `loop-template-post.php`.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“AC Custom Loop Shortcode” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີ
ສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Richie Arnold ](https://profiles.wordpress.org/ambercouch/)

[ແປ “AC Custom Loop Shortcode” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/ac-custom-loop-shortcode)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/ac-custom-loop-shortcode/),
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/ac-custom-loop-shortcode/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/ac-custom-loop-shortcode/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/ac-custom-loop-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.7.1

 * Fixed better support for custom templates

#### 1.7

 * Added better support for custom templates
 * Fixed issue with timber template path on some php versions
 * Fixed timber use statement

#### 1.6.1

 * Fixed issue that required Timber
 * Fixed issue with using multiple taxonomy terms

#### 1.6

 * Added support for display taxonomy terms.
 * Added support for pagination.

#### 1.5.2

 * Fix template issue.

#### 1.5.1 (2024-11-01)

 * Added support for grouping posts by multiple taxonomies.
 * Refactored core code for improved maintainability.

#### 1.5 (2021-04-04)

 * Enhanced Timber compatibility.

#### 1.4.3 (2019-12-06)

 * Resolved release issues.

#### 1.4.2 (2019-12-24)

 * Fixed shortcode argument issues.

#### 1.4.0 (2019-12-05)

 * Added support for specific post type templates and custom Timber integration.

#### 1.1.0 (2018-10-16)

 * Added default post order and optional excerpt in the default template.

#### 0.1.0 (2018-10-07)

 * Initial release.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.7.1**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **2 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **30+**
 *  ເວີຊັນ WordPress ** 5.2 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **6.7.9**
 *  ເວີຊັນ PHP ** 5.2.4 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/ac-custom-loop-shortcode/)
 * ແທັກ
 * [list post](https://lo.wordpress.org/plugins/tags/list-post/)[shortcode](https://lo.wordpress.org/plugins/tags/shortcode/)
   [Timber](https://lo.wordpress.org/plugins/tags/timber/)[twig](https://lo.wordpress.org/plugins/tags/twig/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/ac-custom-loop-shortcode/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/ac-custom-loop-shortcode/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/ac-custom-loop-shortcode/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Richie Arnold ](https://profiles.wordpress.org/ambercouch/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/ac-custom-loop-shortcode/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](http://ambercouch.co.uk/)