Support

2colours: Changing the items in the content glider (4 posts)

Languages

de | fr | es | 日本語

About This Topic

Tags

  1. rss simplydoyou

    new member


    rss Posted 3 years ago
    #

    Is there a way to set up the featured content glider to show the last six posts, excluding the most recent? My glider is showing the same six that originally came up when I installed the theme (last week). My wish is to feature the most recent in the upper right hand corner under "the newest article" and then have the previous six posts show in the glider.

    Check it out at www.simplydoyou.com

    Thanks for all you do Milo!

  2. rss milo

    moderator


    rss Posted 3 years ago
    #

    Easy solution, open featured.php at /2colours/inc/
    and find this lines:

    php query_posts('showposts=1&offset=2

    where offset indicates the last posts minus 2, just change it to

    php query_posts('showposts=1&offset=1

    but then you have to change the following loop calls too,
    form offset=3 to 2 and so on,
    then you'll have the latest six posts minus the newest.

  3. rss milo

    moderator


    rss Posted 3 years ago
    #

    You can even add your cat id's like so

    php query_posts('showposts=1&offset=1&cat=YOURCATID

  4. rss simplydoyou

    new member


    rss Posted 2 years ago
    #

    Cool - I appreciate your time Milo! Thank you.

Reply

You must log in to post.

Design by milo

Milo designs web sites that strike the perfect balance between professional high-class graphics, functionality, usability, user experience, and high performance.