Site logo

[Resolved] Using Query Posts to Show Featured Posts Versus Latest Posts

Home Forums Support [Resolved] Using Query Posts to Show Featured Posts Versus Latest Posts

Home Forums Support Using Query Posts to Show Featured Posts Versus Latest Posts

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2468674
    Myles

    Hi, I’ve read the overview on how Query Posts work, and understand the basic operation.

    However, how do I tell a Query Post block

      what type

    of posts to populate within the block?

    For example, I’m using a GP theme that have a Query Posts block on the home page featured just Featured Articles, then another Query Posts block beneath that showing Latest Articles.

    I tried looking at each block’s setting to determine what the difference is and how one is pulling featured articles while another is pulling recent posts, but. I could not see a difference.

    Can you please advise? Thanks!

    #2468693
    Ying
    Staff
    Customer Support

    Hi Myles,

    Can you link us to your homepage?

    #2468695
    Myles

    Sure, here is the staging site:

    #2468697
    Ying
    Staff
    Customer Support

    I’m not seeing the site link.

    #2468699
    Myles

    That’s weird…Let’s try again 🙂

    https://wordpress-688581-2273186.cloudwaysapps.com/

    #2468705
    Ying
    Staff
    Customer Support

    The 1st query loop is not presenting the featured image, it’s just the latest 3 posts.

    The 2nd query loop is also presenting the latest posts, but offsetting the latest 3 posts which are already presented in the 1st query loop block.

    #2468712
    Myles

    Thanks, Ying! That makes sense.

    That brings up the question, how can I use Query Post blocks to show, perhaps only manually selected posts for a blog?

    And secondly, how can I use Query Post blocks to show only posts that belong to a specific primary category?

    #2468813
    Fernando
    Customer Support

    Hi Myles,

    To choose which posts to show in a GB Query Loop Block, you can set parameters in the Block settings. Reference: https://docs.generateblocks.com/article/query-loop-overview/#query-parameters

    For instance, if you have a Featured Posts section, you can tag posts as featured. Then, add the parameter to include only posts from Taxonomies – Tags – featured. Example: https://share.getcloudapp.com/jkuOe0xd

    You can also choose specific posts, and posts from specific categories through the Parameters option.

    For specific posts, choose the parameter “Include posts”.

    For posts of a specific category, choose Taxonomies – Categories.

    #2468938
    Myles

    Awesome, thanks!

    #2468967
    Fernando
    Customer Support

    You’re welcome, Myles!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.