Tagged items from multiple sources: archive or page?

Hello there,

Please see the attached image. We would like to display tagged items from multiples sources on a single page. Would you recommend using an archive or a regular page? We will be pulling in regular and custom posts types.

How do I add the multiple sources to the Looper?

Also, what is the best method to create the tags taxonomy? We are using Advanced Custom Fields bundled with Pro so should we stick with this?

Thanks!

Spencer

Hello Spencer,

Since you will be pulling from regular posts and custom post types, you will have to do this in a normal page. The Pagination will not work also since this is not an archive. You can use the Looper Provider Query Builder.

Screenshot 2024-01-18 122730

And to display the taxonomy, you can use the Terms element. Check out this documentation:

Hope this helps.

Hi @ruenel,

Thanks for getting back to me. Will this method be able to pull in all of the content depicted in my graphic in the earlier post? Title, custom fields etc.

We will only be loading the content relating to a single tag on each page.

Thanks,

Spencer

Hello Spencer,

Once you have the right query, the post or custom post items should be returns and the titles, custom fields , etc will be easier to display in your desired layout.

Cheers.

Hi @ruenel

Thanks for this, I have the content being pulled in now.

As I have content from different sources, I need to style them slightly differently from one another. How do I add the category to the markup? I tried adding a class via Customise but I haven’t got this working.

Thanks!

Spencer

Hello Spencer,

You will have to create two separate designs for each post type. You can use the Element Condition to show or hide which design for that particular post type.

Hope this makes sense.

Hi @ruenel

I hope you had a good weekend :slight_smile:

We would like to display an alternate featured image using a custom field. How do I hide the featured image if the custom field has content using the conditional rules?

You can see the two images here: https://hub.btwhole.sale/campaign-template-tagged/ - a text icon and the purple image.

These posts are also being used on the blog page so we cannot just change the image to an icon.

I hope this makes sense!

Thanks!

Spencer

Hello there,

Please ignore this last request. I am displaying the different layouts by using a condition targeting each post type.

Thanks!

Spencer