Перейти к содержимому
  • Войти
  • Регистрация
WordPress.org

Русский

  • Темы
  • Плагины
  • Новости
  • Поддержка
    • Документация
    • Форумы
  • О WordPress
  • Сообщество
  • Скачать WordPress
Скачать WordPress

Плагины

  • Любимые
  • Бета-тестирование
  • Разработчикам

Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Скачать

Logic Shortcodes

Автор: Samuel Diethelm
  • Детали
  • Отзывы
  • Установка
  • Разработка
Поддержка

Описание

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» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники
  • Samuel Diethelm

Перевести «Logic Shortcodes» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0

  • Initial upload

Мета

  • Версия: 1.0
  • Обновление: 7 лет назад
  • Активных установок: 10+
  • Версия WordPress: 2.5.0 или выше
  • Совместим вплоть до: 5.4.12
  • Язык:
    English (US)
  • Метки:
    conditionallogicpostmetataxonomyterm
  • Дополнительно

Оценки

У этого плагина ещё нет оценок.

Войдите, чтобы оставить отзыв.

Участники

  • Samuel Diethelm

Поддержка

Есть что сказать? Нужна помощь?

Перейти в форум поддержки

  • О нас
  • Новости
  • Хостинг
  • Поддержать
  • Сувениры
  • Документация
  • Разработчики
  • Присоединиться
  • Обучение
  • Витрина
  • Плагины
  • Темы
  • Паттерны
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Приватность
  • Открытый код
WordPress.org
WordPress.org

Русский

  • Посетите нашу страницу на Facebook
  • Посетите нашу ленту в Twitter
  • Посетите наш Instagram
  • Посетите нашу страницу в LinkedIn
Код — это поэзия.