• Hi,
    I want to display all my ‘posts’ (not pages) in the Sidebar, the same way we display ‘Tags’ or ‘Tags cloud’ in sidebar.
    How to do that?

    Many Thanks,
    Balaji

Viewing 3 replies - 1 through 3 (of 3 total)
  • u want to display recent posts in your side bar or from particular category ?


    if from category use the below one :

    <?php
          $catposts = get_posts('numberposts=10&category=17');
          foreach($catposts as $post) :
       ?>

    replace the numbers as per your convenience

    if u need recent posts use the below one :

    <?php get_archives('postbypost','10'); ?>

    Thread Starter balajimurugavel

    (@balajimurugavel)

    Thanks a lot SriBharat,
    But the problem is in the theme which I am using don’t have a separate sidebar.php , instead it calls like this

    <div class=”column column300 last”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-blog’) ) : ?><?php endif; ?>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar-all’) ) : ?><?php endif; ?>
    </div><!– end column 300 –>

    Now where do I insert the above code.

    Here is the link of the theme
    https://curtziegler.com/sitedemo/wordpress-minimal/

    Many Thanks,
    Balaji

    Thread Starter balajimurugavel

    (@balajimurugavel)

    Another thing is irrespective of Category, how to display all the ‘posts’
    in sidebar

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying ‘All posts’ as we display ‘Tags’ in Sidebar’ is closed to new replies.