Anspress base page conflicts with othe plugins
Hi Rahul,
The way that Anspress is set up as a base page with the [anspress] shortcode causes a conflict with other plugins. From reading other questions it also seems to be the issue for Yoast not showing the individual question titles for seo too š
Eg. Related Posts for WordPress plugin
Comments from plugin author:
Barry: For some reason WordPress thinks all question detail pages are http://test.backpackertravel.org/wp-admin/post.php?post=3412&action=edit
Barry: I suspect the problem to be in anspress but Iām not 100% sure
Barry: itās suppose to be what WP calls a āsingleā page but the base page of questions is returned by WordPress as current page
Barry: therefore my plugin (and others) will look for content of this base page (3412)”
also Easy Social Share Buttons plugins.
Comments from plugin author:
Support: We check and problem is that WordPress detects questions as regular post/page and not in their actual type.
Hello Michael
Base page cannot be the cause of conflict with other plugin cause it only display AnsPress contents. Its true that all contents of AnsPress is delivered from shortcode hence if you want to use any widgets which relay on current post Id then you must use AnsPress widget positions. Also AnsPress uses WP hooks for registering CPTs and taxonomies.
Yoast issue has been already fixed please check development version commit.
This is the response from WP Related Posts “could you email them saying that Iām doing a simple get_the_ID() in the widget IN the āAP Question Sidebarā and that it returns the page ID, sorry about this but thereās nothing I can do here, the widget needs the correct ID in order to work”
It is in AP Question Sidebar, you can login and see it
You have to use get_question_id(), this can be used anywhere in single question page.
This base page set up seems to create so many problems with other plugins š Now I have to get custom work done to the other plugins so they will work with anspress.
Updated answer.