Nested Looper help

Hi guys,

I have created a custom post called Resources that has a taxonomy field called resource_topic_taxonomy. I want to sort posts grouped under each taxonomy term. I’ve created a row with a provider All Terms (set to resource_topic_taxonomy) then in the column below it have set that to consumer with the dymnamic content: {{dc:term:name}}. I’ve created a div for the posts under the coloumn but can’t work out the query string to get the posts for each term. Could you give me a hand please?

THanks,
Darren.

Hello Darren,

Thanks for writing to us.

I would recommend creating an archive layout specifically for your custom post type archive or taxonomy pages. Within this archive layout, you can display all the terms, and you can call the post under the terms. Please note that on archive pages, the default WordPress loop is already in effect, so there’s no need to set a Looper Provider. You only need to use the Looper Consumer to display the posts dynamically based on the accessed category or term archive.

Hope it helps
Thanks

Hi Prakash,

Thanks for the suggestion. These Resource posts appear in 4 different Resources pages throughout the site. I have a choice field on each post that I planned to set as a condition on whether a post is pulled. Where in the structure would I place this if I was using an Archive Layout?

thanks,
Darren.

Hello Darren,

In order to help you with your concerns, we need to check your settings. I would request please share the admin login details. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks

Hello Darren,

I checked your settings, and it seems that it would require a custom Looper. I would suggest you please create a custom Looper. In case you have not seen the custom looper documentation, please have a look at this doc to learn more about how to create custom Looper.

In case you have no idea about custom coding, I would suggest you get in touch with a developer who can assist you with your concerns, or you may subscribe to One, where customization questions are answered. Please note that we don’t provide custom development support. It is out of the support scope.

Thanks for understanding