Blog posts bring up lessons from Masterstudy
-
Hello there guys,
Before coming here I’ve contacted my theme support that guided me in contacting you.
When I choose for the theme to display blog posts in the home page, it brings up also lessons from Masterstudy plugin.
It only happens when both masterstudy and woocommerce are active at the same time. When either woocommerce or masterstudy is disabled, the issue does not occur.
You can see the issue happening at the page, under the title “Popular NLP Certifications & Seminars
Skills”Here is also the link of the theme support discussion https://kriesi.at/support/topic/blog-post-element-broken-when-woocommerce-is-activated/ (no need to log in to read it).
Their conclusion is that “…`And the reason why the blog posts element display all posts when the plugins are enabled is because the default query..
SELECT wp_posts.*
FROM wp_posts
LEFT JOIN wp_term_relationships
ON (wp_posts.ID = wp_term_relationships.object_id)
WHERE 1=1
AND ( wp_term_relationships.term_taxonomy_id IN (4) )
AND wp_posts.post_type IN (‘post’, ‘page’, ‘attachment’, ‘revision’, ‘nav_menu_item’, ‘custom_css’, ‘customize_changeset’, ‘oembed_cache’, ‘user_request’, ‘wp_block’, ‘wp_template’, ‘scheduled-action’, ‘product’, ‘product_variation’, ‘shop_order’, ‘shop_order_refund’, ‘shop_coupon’, ‘portfolio’, ‘avia_framework_post’)
AND (wp_posts.post_status = ‘publish’
OR wp_posts.post_author = 13
AND wp_posts.post_status = ‘private’)
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC
.. gets transformed to..SELECT wp_posts.*
FROM wp_posts
WHERE 1=1
AND wp_posts.post_type IN (‘post’, ‘page’, ‘attachment’, ‘revision’, ‘nav_menu_item’, ‘custom_css’, ‘customize_changeset’, ‘oembed_cache’, ‘user_request’, ‘wp_block’, ‘wp_template’, ‘product’, ‘product_variation’, ‘shop_order’, ‘shop_order_refund’, ‘shop_coupon’, ‘stm-courses’, ‘stm-lessons’, ‘stm-quizzes’, ‘stm-questions’, ‘stm-reviews’, ‘stm-orders’, ‘stm-payout’, ‘portfolio’, ‘avia_framework_post’)
AND (wp_posts.post_status = ‘publish’
OR wp_posts.post_author = 13
AND wp_posts.post_status = ‘private’)
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC
.. and this part of the query that is supposed to retrieve posts from the selected category gets omitted.LEFT JOIN wp_term_relationships
ON (wp_posts.ID = wp_term_relationships.object_id)
It is possible that the plugin is using the pre_get_posts filter somewhere in its code base and overrides the blog posts query. You may need to contact the developers of the Master Study LMS plugin for additional assistance regarding the issue.`Can you please kindly assist me in resolving this?
Best regards,
Victor
The page I need help with: [log in to see the link]
- The topic ‘Blog posts bring up lessons from Masterstudy’ is closed to new replies.