Plugin Author
Ajay
(@ajay)
Assume the product is the correct post type?
Are you able to see what query is being generated on the post once you’ve added this shortcode – using Query Monitor?
It could be the issue that the plugin can’t find any posts. One quick way to check is to customise the Show when no posts are found setting
@ajay
Yes, the product is the post type needed. My site has many products.
Tried query monitor and found a few queries but none seems to query against post_type = ‘product.’ There are some querying post_type in (‘product,’ ‘…’, ‘…’) etc. Is there a way to see the query used by the shortcode, like a debug mode or sth., QM slows down my site?
Opened many blog post pages and checked, all showing “No related posts found.” Anything else to check?
Thanks
Plugin Author
Ajay
(@ajay)
You’ll need to find a query that looks like the one on this page:
http://webberzone.com/support/knowledgebase/debugging-with-query-monitor/
It has the MATCH clauses in there.
You can disable QM as soon as you get the query.
But, the feeling I get is that the plugin can’t find any related posts probably because of the limited content/title to pull it out of.
One option to try in the shortcode is to set disable_contextual=1. This should remove the match clause but it loses the relevance unless you have common categories.
https://github.com/WebberZone/contextual-related-posts/blob/master/includes/class-crp-query.php#L352
Hi @ajay
I tried disable_contextua=1 in my shortcode:
[crp post_types=”product” same_post_type=”0″ disable_contextual=”1″]
Still, no related products were found.
Could you spare a minute to take a look for us? I can send over temporary access with a private channel if you let me know.
Thanks
Shawn
Plugin Author
Ajay
(@ajay)
@wpshushu
I don’t tend to look into these due to non-WP commitments. Can you get me the query as per my previous post?
@ajay Sorry, we have figured it out. Closing.