[Resolved] Right sidebar for Custom Post Types

Home Forums Support [Resolved] Right sidebar for Custom Post Types

Home Forums Support Right sidebar for Custom Post Types

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2373277
    Raul

    Hi

    I have a few CPTs and for one of them I want to display other posts of that type on the right sidebar.

    First, I have used the Layout element to show the right sidebar for that particular CPT.

    My question now is how can I show other posts of that CPT in the right? I think this should be something simple, a WordPress functionality, no? But I simply don’t know how to do it.
    Can you please help?

    #2373366
    David
    Staff
    Customer Support

    Hi there,

    which posts would be displayed ? Just a list of the latest posts ?

    #2373783
    Raul

    Yes, just a list of latests posts.

    #2373887
    Ying
    Staff
    Customer Support

    Hi Raul,

    You can add a GB query loop block to a block element – hook .

    Set the hook name tobefore_right_sidebar_content or after_right_sidebar_content depending on your design.

    #2374075
    Raul

    Ah, that’s perfect. Thank you!

    #2375521
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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