Skip Navigation

[Resolved] Taxonomy Archive showing multiple taxonomies on the page instead of just the one

This support ticket is created 6 years, 3 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 3 voices.

Last updated by Minesh 6 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1117276
Screenshot 2018-09-28 at 19.43.00.png
Screenshot 2018-09-28 at 19.43.14.png
Screenshot 2018-09-28 at 19.43.31.png
Screenshot 2018-09-28 at 19.43.47.png

I am trying to:
We are using a plugin 'Download Manager' which gives us 'download' post types, and 'download category' taxonomies.
We've created an archive layout using Toolset for the download category and it's working well, except for one of the taxonomies.

The category causing problems is called 'Charity'. In downloads, I have 8 items that have the 'Charity' taxonomy.
There's one download that has multiple 'download categories' assigned, and if I remove the 'Charity' category on this one, then the display is fine. But what's strange is the other category archive pages show just fine, even with this download that is assigned multiple categories.

Link to a page where the issue can be seen:
I can't provide a link as this is a closed membership site. Screenshots are provided instead.

I expected to see: The page title (taxonomy name) to only show the name of the archive page being shown and only posts assigned to that one taxonomy.

Instead, I got: It works fine on all but the one taxonomy, but on this one archive page, the page title shows multiple taxonomies (download categories) and the posts shown are from all the taxonomies instead of just the one.

#1117591

Here you display the Taxonomy Term's Title:
hidden link

Taxonomies, such as categories, are built of Terms, such as "Uncategorized" in the native Taxonomy "Categories"

In this case, you display the term(s) of the Taxonomy.
Then you have 2 Views (not WordPress Archives, as usually recommended for archives) on that Archive Layout which can result in wrong queries.

Suggested would be to add an Archive Cell instead.

However the issue you report is due to the ShortCode in the first Visual Editor Cell of that Layout which basically outputs the Term of the Taxonomy that is assigned to the Post, and since this is applied to an archive, it gets the posts of the term, then all the terms of the post, then displays those.
If you share just one more term with other posts, on that term the same will happen.

The correct solution here should be to apply WordPress Archives, and not the taxonomy term title shortcode, and if, then use the [wpv-taxonomy-archive info="name"] or "[wpv-archive-title]" as shown here:
https://toolset.com/forums/topic/display-current-page-archive-title-heading-in-a-layout/
https://toolset.com/forums/topic/title-not-showing-on-custom-taxonomy-archive-pages/#post-541676

That should work better.

#1117618
Screenshot 2018-09-29 at 12.17.23.png
Screenshot 2018-09-29 at 12.18.08.png

Hi Beda,

Thanks for the response.
Ok If I use [wpv-taxonomy-archive info="name"] in the first cell, this solves the title issue, and now only displays 'Charity' as expected. This does not fix the views though, as they still show multiple records from various categories (taxonomies).

I'm not sure I understand the issue properly. The URL this is on is .../download-category/charity/
So I understood that this means I am using an archive. The layout is set to be used for 'Category Archives' (please note that in this case 'Category' actual refers to wpdm-category, not the built in WordPress category - very poor naming convention from the Download Manager plugin)

In my view, the filter is set:
"Select posts with taxonomy: Categories the same as the page where this View is shown"
I though this means that I'm on the 'download-category' taxonomy page 'charity' which should mean that only posts that have the term 'charity' should display?

#1118131

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - could you please share problem URL and access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.