How to Use Shortcode Feature in Post, Pages and Template

Categories:

Shortcode plugin is great feature which provides more function and features to your website to use Shortcode features in post, pages and template you need to activate plugin.

How to Install a Required or Recommended Plugin

How to Use Shortcode Feature steps

  • Install and activate plugin from Dashboard > Appearance > Install Plugin
  • Now Choose all recommended plugin and install them
  • After installation click on activate plugin
  • After activation of shortcode plugin edit or create new page or post
  • Then click on button Insert Shortcode to add a feature
  • Choose your feature and configure option.

After all this you gets a shortcode like below put this code anywhere in post or page even into widgets as well.

[su_sl ider source="media: 11682,11681,11680,11679"]

How to use this code in template file using PHP

<?php echo do_shortcode('[su_sl ider source="media: 11682,11681,11680,11679"]'); ?>

Before editing template make sure you take backup of theme and data to prevent any accident.

Adding Slider using shortcode

Click on below image to view steps for adding slider.

 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *