Title: Logic Shortcodes
Author: Samuel Diethelm
Published: <strong>19 ເມສາ 2016</strong>
Last modified: 28 ເມສາ 2016

---

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

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

![](https://s.w.org/plugins/geopattern-icon/logic-shortcodes.svg)

# Logic Shortcodes

 ໂດຍ [Samuel Diethelm](https://profiles.wordpress.org/samueldiethelm/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/logic-shortcodes.zip)

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

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/logic-shortcodes/)

## ຄຳອະທິບາຍ

This plugin enables the use of [if] shortcodes to work with conditional logic based
on the existence of post meta or taxonomy terms on posts and pages.

Please consider taking a minute to rate the plugin or let me know any feature request.
Thanks!

#### Taxonomy

With conditional logic for taxonomy terms, you can use names, slugs or term_ids:

 * [if taxonomy=”category” slug=”cars”]Content to show[/if]
 * [if taxonomy=”category” name=”Cars”]Content to show[/if]
 * [if taxonomy=”category” id=”123″]Content to show[/if]

#### Post Meta

Post meta (or custom field) logic can be used to check if a certain meta_key AND
meta_value combination are present or just a meta_key:

 * [if postmeta=”car_model”]Content to show if car model info is present[/if]
 * [if postmeta=”car_model” value=”Tesla Model S”]Content to show if car model is
   Tesla Model S[/if]

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

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

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

  Where can I use the logic?

Anywhere where shortcodes are accepted and a post or page is being displayed.

## ການຣີວິວ

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

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

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

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

 *   [ Samuel Diethelm ](https://profiles.wordpress.org/samueldiethelm/)

[ແປ “Logic Shortcodes” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/logic-shortcodes)

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

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

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

#### 1.0

 * Initial upload

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

 *  ເວີຊັນ **1.0**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **10 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 2.5.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **5.4.19**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/logic-shortcodes/)
 * ແທັກ
 * [conditional](https://lo.wordpress.org/plugins/tags/conditional/)[logic](https://lo.wordpress.org/plugins/tags/logic/)
   [postmeta](https://lo.wordpress.org/plugins/tags/postmeta/)[taxonomy](https://lo.wordpress.org/plugins/tags/taxonomy/)
   [term](https://lo.wordpress.org/plugins/tags/term/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/logic-shortcodes/advanced/)

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

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

[Your review](https://wordpress.org/support/plugin/logic-shortcodes/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/logic-shortcodes/reviews/)

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

 *   [ Samuel Diethelm ](https://profiles.wordpress.org/samueldiethelm/)

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

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

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