Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Query of Query ?

  • Hi,

    i have two custom post types:
    – Community
    – Group

    Both are linked with a single taxonomy Category. For example:

    “Community A” has Category of “Community A”
    “Group 123” has Category of “Community A”

    Since my Community items are created and also removed (to draft) quite often, i have a problem listing all Communities and their Groups. Groups can also be removed often too.

    At the moment I have a Query Block for each Community, to output all Groups within. So the page has about 92 Community Query Blocks each printing out it’s respective Groups.

    I’ve been trying to create A “Query of Query” block, to print out all Communities, but i can’t link the Groups in the child Query Block … If i set Taxonomy to Category and from “Current post terms” I get a blank Loop list.

    Is it even possible to do that? Or should i be looking at a custom PHP solution? Or Is there another way to link Communies and Groups?

    Thanks.

  • Hi there,

    I’m not sure I understand your case.

    Can you specify where you would like to display the communities? Is it on the single Group page?

    Can you explain some more?

  • Hi Ying,

    Yes, I want to display this on just a regular Single page, because I have content before and after his listings:

    Query in Query

    Hope the image helps.

    Regard,

  • Can you show me your setup for the query block?

    And where is this query block? Is it on a single group page or in a block element?

    Let me know 🙂

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