Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6113
    bendelaney
    Member

    I am using the latest post widget in the top header right sidebar position.  I have changed the order of my posts to be oldest post on top (first).   But, I can’t find where to edit the widget to do the same.  Can you tell me where I would insert the code to change the display order of the latest posts widget?     If you know the correct code to insert there, that would be great too.

    To change the display order of the posts on the page I inserted this code:

    <?php query_posts($query_string . ‘&orderby=date&order=ASC’); ?>

    RIGHT above this line in the  content.php  file.

    <?php while( have_posts() ):the_post(); ?>

    Thank you.

    #6121
    Sakin
    Keymaster

    @bendelaney: You cannot add in the php code. You need to add in the widgets through “Appearance => Widgets”.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Latest Post Widget – Change to Ascending Order’ is closed to new replies.