Show Recent Blog Posts in Homepage Second Feature Section?

Discussion in 'Dzonia WordPress Theme' started by tiredsahm22, Mar 3, 2014.

Thread Status:
Not open for further replies.
  1. tiredsahm22

    tiredsahm22 New Member

    Joined:
    Mar 2, 2014
    Messages:
    5
    Likes Received:
    0
    I was recently using the Dzonia Lite theme and upgraded to the Pro version. Now there is no option for recent blog posts to show on the homepage. I'd like for these to show in the Second Feature Section like they do in Dzonia Lite. How can I do this? I'm not a programmer so I need user friendly instructions. Thanks!
     
  2. Nitesh

    Nitesh Support Staff

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

    For this you can use "Special Recent Posts" plugin.
    http://wordpress.org/plugins/special-recent-posts/installation/
    Activate it.
    Then open front-page.php and replace code shown in the image with the code given below.

    Code:
          <?php
        if(function_exists('special_recent_posts')) {
           $args = array(
        'post_limit'       => 2,
               'widget_title' => text
    );
            special_recent_posts($args);
        }
    ?> 
    recent-post.png recent-post1.png

    Thanks & Regards
    Nitesh Raghuwanshi
     
  3. tiredsahm22

    tiredsahm22 New Member

    Joined:
    Mar 2, 2014
    Messages:
    5
    Likes Received:
    0
    Thank you!
    This works but with an error.
    The word "text" appears as the title of the recent posts. I would like it to read "Recent Posts" but don't know how to do that.
    Thank you for any additional help you can provide.
    The website is www.huministries.org
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    We have checked your website and not found any error.
    If you want to put your title in place of "text" then go to the front-page.php file present in your theme directory and
    follow the instruction shown in the image given below.

    [​IMG]

    This will solve your issue.
     
  5. tiredsahm22

    tiredsahm22 New Member

    Joined:
    Mar 2, 2014
    Messages:
    5
    Likes Received:
    0
    Thank you!
    Just a note - I can only enter a one word title - "Posts". If I enter two words - "Recent Posts" - I get an error message. I'm good with just a one word title but wanted to let you know if the issue comes up again for someone else.
    Thanks again!
     
  6. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Just add your heading in single quote, This will solve your issue.

    Code:
     'ENTER YOUR HEADING HERE'

    Thanks & Regards
    Gourav Shrivastava
     
  7. tiredsahm22

    tiredsahm22 New Member

    Joined:
    Mar 2, 2014
    Messages:
    5
    Likes Received:
    0
    Perfect! Thanks!
     
Thread Status:
Not open for further replies.

Share This Page