QA box on single pages and products
Hi. I’m looking into your plugin and I was wondering if the plugin is able to be added to product pages and allow customers to ask product related questions right on the product page. I’m also wondering if it will work on single pages as well.
Question is closed for new answers.
Rahul Aryan Answered question
Hello,
You can make it work in single page as well in products page. You’ll have to use this shortcode:
[anspress post_parent=123]
To automatically grab current single page id, you’ll have to insert shortcode using PHP.
Doug Holladay Posted new comment
That’s great to know! Thanks for your reply.
Do you happen to have an example of the PHP code that would be necessary? I would like to add it to a template file so that it automatically recognizes the page that it’s on