• Resolved onlionentertainment

    (@onlionentertainment)


    Hello

    I have a website in that i create tag for each album. I will create posts and tag the posts. when i click any tag , it shows the posts related to that specific tag. I want to display latest posts related to specific tag using query loop. If i give taxonomy to specific tag it shows all the posts in the query loop but i just want to add tag url to query block . So that i can add more tag url to query block. On the home page it only displays few latest tags . so that user can click on specific tag and see all the posts related to that tag.

    For Ex: Tag Name : Movie 1

    Movie 1 contains 4 posts with tag of Movie 1

    -Movie 1 (Tag name)
    Post 1
    Post 2
    Post 3
    Post 4

    When I click on that Movie 1 from home page it takes archives page of that particular tag.

    But in Query loop only one option is there to include taxonomis , If i choose Movie 1 tag it will display all 4 posts in query loop itself .
    I only want to give Movie1 url in the query loop

    Is that possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support David

    (@diggeddy)

    Hi there,

    the Query Loop can only loop over posts, and display a list of posts, what it cannot currently do is Loop over taxonomy terms. Which is what i suspect you would require

    Instead you could :

    1. add a GB Headline block or GB Button and manually add your Tag Name and the Tag Archive Link
    2. below this add your Query Loop to display your list of posts.

    https://youtu.be/x6-aT0FXwis?si=y76P6Z7CnZ8yapr-

    This video from Kyle at The Admin Bar might be of some use. He covers Query Loops.

    Thread Starter onlionentertainment

    (@onlionentertainment)

    @diggeddy Point 1 works but for every tag i have to do it manually. that is bit tedious . query loop currently do not loop over taxonomy terms.

    point 2 : By default WordPress show the related posts when you click on specific tag if we dont require any customization in view.

    Plugin Support David

    (@diggeddy)

    Point 1 – to do that automatically would mean a) we have to loop over taxonomies and b) we have to nest a Post loop inside a term loop. Both will be future features in GenerateBlocks Pro.

    So unfortunately you will have to do it manually.

    Point 2 – i do not understand ?

    Plugin Support fernandoazarcon2

    (@fernandoazarcon2)

    Hi there! We haven’t heard back from you for a while now so we’re going to go ahead and set this topic as resolved. Feel free to open a new topic if you need assistance with anything else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Query loop Generatepress theme’ is closed to new replies.