Skip Navigation

[Resolved] Show list of posts in CPT Template with the same tag

This support ticket is created 2 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 4.92 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by thomasB-2 2 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2469313

We add a CPT "Kitas" and assign the basic tags wich also was assigned to standards post type posts. And we will show on the Detailpage of the single Kita- created with Toolset Blocks and Content template - a list of normal posts with the same tag.
In the content template i try to add a new block "views" and limit it to post type Posts and create a query filter " Taxonomies / Tags" with setting "Set by page where this view is shown".
Thats sound in my opinion correct.
But problem is, that i could not add fields to the view - because i don't get a plus icon. I see only " there were no posts fount to display for this views query".
But i have a kita and 3 posts with the same tag???
So what's wrong?

#2469909
view-no-results-example.png

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some tests on my website, with a similar setup, but, couldn't reproduce this behavior. Even when the view showed the "There were no posts found to display for this View's query." message, the option to add blocks within the view's loop was still available.
( example screenshot attached )

Also, the "There were no posts found to display for this View's query." message itself can be avoided, by using any of these steps:

1. Please make sure that in the content template's "View with" field at the top, a "kita" post is selected that shares some tag with an existing post.
(so that the view can return at least one result)

OR

2. While editing the blocks inside the view, you can temporarily remove the taxonomy query filter to show only the posts with the common tags. Once done, you can add back the taxonomy filter.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2471751

My issue is resolved now. Thank you!