to change the order of posts

Discussion in 'Andrina WordPress Theme' started by danteunipv, Dec 15, 2015.

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

    danteunipv Member

    Joined:
    Feb 3, 2015
    Messages:
    59
    Likes Received:
    1
    Dear friends
    this is the php code for the front-page.php. I can show only 5 posts of the category 5
    <?php query_posts( 'cat=3&showposts=5' ); ?>
    How Can I change order posts; example: ASC or DESC
    Can you write me the code?
    best regards
    Dante
     
  2. priya

    priya Guest

    Hello Dante,

    Greetings from InkThemes!

    Please follow the screenshot given below.

    andrina_ASC_DEC_post.png

    Hope you will find it helpful.

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  3. danteunipv

    danteunipv Member

    Joined:
    Feb 3, 2015
    Messages:
    59
    Likes Received:
    1
    Thank you! :);)
     
Thread Status:
Not open for further replies.

Share This Page