Anspress base page conflicts with othe plugins

5.72K viewsCoreissue
0

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.

Updated answer.

0

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.

You are viewing 1 out of 1 answers, click here to view all answers.