This is plugin help you to add conditions inside any post types, menus, and widgets to restrict the content by use shortcode without use php code or other language :).
Posts/Pages/Other Post Types :
- Create new content and in above tinymce editor you will see button it's name is "IF".
- Click "IF" button and choose the condition you need to use inside content area.
- You can select the true block and write otherwise inside else block.
- Save your content and publish to see it!
Menus :
- Click in left side "Appearance"
- Choose from it "Menus" page.
- You must show description field for every menu by this way :
- Click "Screen Options" up the menu page.
- Chack "Description" from that tab.
- Now you can add your restrict content from "Shortcode" tab.
Widgets :
- Click in left side "Appearance"
- Choose from it "Widgets" page.
- Now you have box it's name "The restricted content".
- You can move it to any sidebar and fill the felids.
Translations
Installation Automatically
- Click Plugins in the menu dashboard.
- Click Add New.
- Upload and choose "if-as-shortcode.zip" file and activate directly.
- After activated plugin you can use shortcode of if statement everywhere!
Installation Manually
- Download the plugin to your computer.
- Unzip the file and upload it to the "/wp-content/plugins/" by using FTP or Cpanel.
- Activate the plugin through the "Plugins" menu in WordPress dashboard.
- After activated plugin you can use shortcode of if statement everywhere!