Thanks for the response - appreciated. I've used a default wp page to display the shortcode of [anspress] but this has the same result, so I don't think it's cornerstone. I used the same URL in testing, so no changes there.
You can replicate this easily by
- Installing AnsPress 4.1.0 from AnsPress.io or from their git repository (master branch)
- Configure AnsPress options so that each page is defined - in my case, categories, archives, tags, etc.
- Go to the addons tab and enable categories and tags
- Create a new test question
- Assign a category or tag to it
- Open the question when created
- When the question is open, click the tag or category shown at the top which will replicate the issue - no content is loaded
AnsPress had been tested with multiple themes and works with no issues - except X. I've been in contact with the developer of this theme who informed me that X is overwriting the rewrites from AnsPress. An extract of that discussion is below
"sorry but this cannot be solved. This bug is generated by theme 100%.
category main query look like this:
AND wp_posts.post_type IN ('post', 'page', 'attachment', 'essential_grid', 'x-portfolio')
but it must be like:
AND wp_posts.post_type = 'question' can be in statment but with question cpt.
as you can see now, theme or may other plugin completely overriding core WP functionality."
It's not the plugins. If I switch to TwentySeventeen, everything works as expected. I thought that perhaps I could add these post types to cornerstone, but they are not listed as available.
I found a function that permits the addition of post types but can't get this to work either. Note, that this issue persists regardless of stack - I'm using integrity.
I have a staging site at https://dev.phenomlab.com which I can give you access to. Essentially, it's a pre-made replica of the live environment with testing tools (query and rewrite monitor) enabled.
I'd really like to get this fixed asap - let me know if the dev site access will speed this process up, and I'll get a login over to you.