Hello @wputler
The behaviour you expect is what the plugin should return. I tested your issue but couldn’t reproduce what you are describing. The plugin seems to be filtering by CPT and tags correctly.
From looking at your shortcode I think the culprit might be post_type="services"
. The post_type
parameter expects a CPT slug which in most cases is singular. Try it with post_type="service"
.
services is correct. Here’s a test page using just services and then services with autism:
http://focusdev5.info/test-2/
And it has the shortcode:
[catlist post_type=services]
You can see it just pulls the services.
Then further down the page:
[catlist post_type=services tags="autism"]
Show the services tagged with autism, but also the team members and the posts.
Any other ideas?
Thanks for clarifying.
This shouldn’t be happening and I’m unable to reproduce this in testing environment.
At this point I recommend the traditional WordPress debugging process:
- Make sure you have the latest versions of WP and LCP installed
- Enable debug mode in
wp-config.php
and make sure there are no errors displayed on your test page
- Disable all plugins but the LCP plugin.
- Switch to a default theme
- Check if the issue still exists. If it does, let me know. If it doesn’t:
- Start enabling your installed plugins (and theme) one by one. Before each element is enabled, check if your issue occurred.
- Let me know which plugin (or maybe theme) triggered the issue
-
This reply was modified 2 years, 11 months ago by
zymeth25.
-
This reply was modified 2 years, 11 months ago by
zymeth25.
It’s this plugin: https://wordpress.org/plugins/tag-pages/
Thanks for all your help. I believe that plugin is resetting the query AFTER you create it.
I may just have to add the tag taxonomy to the pages manually instead of using this plugin.
I’ve notified the author.
Good, glad you found the guilty plugin.
Cheers!
You don’t have to uninstall this plugin. I had a quick look at it and to make it compatible with LCP you should add this line to your child theme’s functions.php file:
function tagpages_display_tagged_pages_archive() {}
You are AMAZING!! That worked beautifully!!
Thank you so much!!
/Wendy