Chuyển tới nội dung
  • Giới thiệu về WordPress
    • Giới thiệu về WordPress
    • WordPress.org
    • Tài liệu
    • Hỗ trợ
    • Thông tin phản hồi
  • Đăng nhập
  • Đăng ký
WordPress.org
WordPress.org

tiếng Việt

  • Giao diện
  • Plugin
  • News
  • Hỗ trợ
    • Documentation
    • Diễn đàn
  • Giới thiệu
  • Meetup
  • Team
  • Get WordPress
Get WordPress

Plugin

  • Mục yêu thích
  • Phiên bản Beta
  • Lập trình viên

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.

Tải về

Logic Shortcodes

Bởi Samuel Diethelm
  • Chi tiết
  • Đánh giá
  • Cài đặt
  • Hỗ trợ
  • Development

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á

There are no reviews for this plugin.

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

Dịch “Logic Shortcodes” sang ngôn ngữ của bạn.

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

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

1.0

  • Initial upload

Meta

  • Phiên bản: 1.0
  • Lần cập nhật gần nhất: 6 năm trước
  • Lượt kích hoạt: 10+
  • Phiên bản WordPress: 2.5.0 hoặc cao hơn
  • Đã kiểm tra với: 5.4.10
  • Ngôn ngữ:
    English (US)
  • Tag:
    conditionallogicpostmetataxonomyterm
  • Nâng cao

Đánh giá

Plugin chưa nhận được đánh giá nào.

Log in to submit a review.

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

  • Samuel Diethelm

Hỗ trợ

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

Xem diễn đàn hỗ trợ

  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

tiếng Việt

  • Visit our Facebook page
  • Visit our Twitter account
Viết code như làm thơ.