Title: Logic Shortcodes
Author: Samuel Diethelm
Published: <strong>19 Tháng 4, 2016</strong>
Last modified: 28 Tháng 4, 2016

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# Logic Shortcodes

 Bởi [Samuel Diethelm](https://profiles.wordpress.org/samueldiethelm/)

[Tải về](https://downloads.wordpress.org/plugin/logic-shortcodes.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/logic-shortcodes/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/logic-shortcodes/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/logic-shortcodes/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/logic-shortcodes/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/logic-shortcodes/)

## Mô tả

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]

## Cài đặt

 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

## Hỏi đáp

  Where can I use the logic?

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

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Logic Shortcodes” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “Logic Shortcodes” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/logic-shortcodes)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/logic-shortcodes/), check
out [SVN repository](https://plugins.svn.wordpress.org/logic-shortcodes/), hoặc 
theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/logic-shortcodes/)
qua [RSS](https://plugins.trac.wordpress.org/log/logic-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0

 * Initial upload

## Meta

 *  Phiên bản **1.0**
 *  Cập nhật lần cuối **10 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 2.5.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **5.4.19**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/logic-shortcodes/)
 * Thẻ
 * [conditional](https://vi.wordpress.org/plugins/tags/conditional/)[logic](https://vi.wordpress.org/plugins/tags/logic/)
   [postmeta](https://vi.wordpress.org/plugins/tags/postmeta/)[taxonomy](https://vi.wordpress.org/plugins/tags/taxonomy/)
   [term](https://vi.wordpress.org/plugins/tags/term/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/logic-shortcodes/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/logic-shortcodes/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/logic-shortcodes/)