This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Tagged: ,

Extending the custom query

  • Creator
    Topic
  • #8540
    Jason Bobich
    Keymaster

    When working with post grids and post lists within the framework there are ways to pass custom query strings through to the elements. For those that have knowledge of WP_Query, this allows you to drill down past the options available with post lists and post grids to query the posts in your own way — maybe by a tag, a custom post type, a custom taxonomy, etc.

    Read Full Article →

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #8674
    askwpgirl
    Participant

    Thanks, Jason.

    #10304
    karlo
    Participant

    Cool, I was just cursing over that little text-box. Does not like arrays!

    But I could not get pagination to work in a post grid. Was just a simple query, 1 cat with many posts, 6 per page. After adding this

    'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1

    it worked! Not sure if this has changed or there is a better way, but it cant be all wrong as of today.

    #16840
    Eleven Sites
    Participant

    Thank you so much for this. I was going nuts trying to figure out why things weren’t working for me. This juicy bit is a life savor!

    Now, I’ve got a lot of cleanup to do. 😉

    #18689
    John
    Participant

    Is there a different filter for mini-post-list and/or grid?

    #18697
    Jason Bobich
    Keymaster

    Is there a different filter for mini-post-list and/or grid?

    No, unfortunately there is currently no way to do this.

    However, it’s maybe worth noting that in Jump Start 2.0 (coming soon), this is now possible, as just about everything queried goes through this same “themeblvd_posts_args” filter.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.