This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Filter by Category and Offset

Resolved 6 replies premiumthemetheme-vantage
Started · Latest reply by Andrew Misplon

Hi,

I am trying to accomplish a few things here in one page:
a.) to display posts based on Categories, example cat=5 , or category = Teacher
b.) Have the blogs displayed with offset, “Most recent” in first column, “2nd most recent” in the second column” and “3rd most recent”in the third column. I know carousel does part of this, we prefer the static ones.
c.) Display remainder post in as “Recent Post” and Archives

I managed the filter by category but didnt managed to:
1. get the offset to work for the second and third column
2. display remainder posts, filtered by category.

URL: http://upstore.com.my/englisheagleasia/for-teachers/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

6
  1. lee

    Previously I managed to achieve it by “query_posts(‘posts_per_page=5&offset=1’);” but it didnt seemed to work when now.

  2. Andrew Misplon Staff

    Hi Lee

    The Carousel Widget would be the best bet here. Arguments like cat=1 or cat=1,2,3,4 would pull category ID’s for you. The widget’s additional field can be used for this. Remember to just say cat=x, don’t include query_posts. Posts per page is a widget setting so you don’t need that. I’ve never tried offset, you could try: cat=1&offset=1 and see if that works.

  3. lee

    Thanks Andrew,

    THe “cat=1&offset=1” you suggested worked :)

    Do you think i can apply filters like cat=1 for
    a.) Recent Posts
    b.) Archives

  4. Andrew Misplon Staff

    Super, glad that did the trick.

    Not quite following there. Yes, it’s possible to filter the built in Archive pages but it would require a child theme and creating your own loops in template files, it’s a custom development level task.

  5. lee

    Thanks Andrew,

    I will try the child theme and let u know again (probably in a new thread) :) Have a good day

    thanks for the great support

  6. Andrew Misplon Staff

    For sure, you too.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread