Condition Maker
Condition Maker is a WordPress plugin that enables you to create conditional logic using shortcodes. With this plugin, you can easily define conditions based on attribute values and comparison operators to control the display of content on your WordPress site.
by Haris Khan · github.com/haris-khan-durrani/condition-maker-wordpress-plugin
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/haris-khan-durrani/condition-maker-wordpress-plugin/archive/refs/heads/main.zipFrom the readme
Condition Maker WordPress Plugin
Condition Maker is a WordPress plugin that enables you to create conditional logic using shortcodes. With this plugin, you can easily define conditions based on attribute values and comparison operators to control the display of content on your WordPress site.
Installation
1. Download the latest release from the GitHub repository.
2. Extract the downloaded ZIP file.
3. Upload the extracted folder to the wp-content/plugins/ directory of your WordPress installation.
4. Activate the plugin through the 'Plugins' menu in WordPress.
Usage
Shortcode: [makecond]
The main shortcode provided by the Condition Maker plugin is [makecond]. This shortcode allows you to create conditional logic with various attributes. Here is an example of its usage:
php
[makecond inputattribute="someattribute" inputisshortcode="yes" comparisonoperator="==" comparisonvalue="somevalue" outputattribute="[shortcodecontent]" attr="yes" elseouashort="no" elseout=""]
Shortcode Attributes
inputattribute: The attribute to be compared.
inputisshortcode: Set to 'yes' if the input attribute is a shortcode.
compareisshortcode: Set to 'yes' if the comparison value is a shortcode.
compa