Add Shortcode to Home Page

Discussion in 'Local Business WordPress Theme' started by gmarino4, Apr 10, 2014.

  1. gmarino4

    gmarino4 New Member

    Joined:
    Jun 7, 2012
    Messages:
    8
    Likes Received:
    1
    I would like to effectively utilize this shortcode:

    [display-posts include_excerpt="true" image_size="thumbnail" wrapper="div"]

    Above the existing content in: theme option>Homepage>Left Feature Description

    Again, I want to add it so a post will appear before the existing content so I do not want to replace ity, just add the shortcode results. I tried through theme oprions and the front-page.php and am unable to get it to work.
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    For this open "front-page.php" and replace code given below as shown in the image.

    Code:
    <p><?php echo stripslashes(do_shortcode(inkthemes_get_option('inkthemes_leftdesc'))); ?></p>
    shortcode.png

    Thanks & Regards
    Nitesh Raghuwanshi
     

Share This Page