setick
Forum Replies Created
-
Forum: Plugins
In reply to: [Contextual Related Posts] meta_query not working as expectedyour beta would fix it according to your code.
Will test on monday and get back.
Forum: Plugins
In reply to: [Contextual Related Posts] meta_query not working as expecteduh, i have custom functions for these fields, they are generated automatically after each save_post() action. Basically I count the word count and shortcode count for each posts and save them in custom fields, nothing particular.
I think you can just make 2-3 dummy posts, with some manually added custom fields to test it out. Very easy to replicate.
If you face any issues trying to replicate, hit me up. I will set a tastewp test site for you.
Forum: Plugins
In reply to: [Contextual Related Posts] meta_query not working as expectedmy current workaround is to get all the post_ids using original get_posts() with multiple queries, merging them and use get_crp_posts() with post__id_in to get the related posts i need.
It works but I also expect to get it directly from your plugin.
thanks
Looking for support from TranslatePress author related to the issue.
Forum: Plugins
In reply to: [Contextual Related Posts] CRP not working properly with translatepressThanks for your time testing!
Yes translatepress translate based on string so it’s very lightweight and easy to use for normal users. Saves a lot of time for translation maintenance.
Wait for response from TranslatePress.
Also, for the question below, is it a yes or no?
P.S. I have a question about the get_crp_posts() wrapper. Does it already include the contextual filter? What I mean is if I use get_crp_posts(), are the returned posts already “contextual related” to the current post? Or do I need to implement more codes to get the contextual-related posts?
Forum: Plugins
In reply to: [Contextual Related Posts] CRP not working properly with translatepress$args = array( 'post_type' => 'post', 'tag_id' => 99, 'posts_per_page' => 8, ); $posts = get_posts($args); if ($posts) { ## Styling for showing related posts }
I just tested, get_posts() works on translated pages while get_crp_posts() does not show anything.
As for the query monitor, it does NOT show database_queies on translated pages for WP get_post() as well.
My use case is to build customized related post sections, mostly it’s about styling. For the wp_query it is simply querying specific tags or meta_query values.
P.S. I have a question about the get_crp_posts() wrapper. Does it already include the contextual filter? What I mean is if I use get_crp_posts(), are the returned posts already “contextual related” to the current post? Or do I need to implement more codes to get the contextual-related posts?
I see, thanks for the reply.
Forum: Plugins
In reply to: [Contextual Related Posts] CRP not working properly with translatepressGuess I have to use wp built-in get_posts as a workaround till you have time for this as it breaks my front end.
Thanks for taking a look at this issue!
Forum: Plugins
In reply to: [Contextual Related Posts] CRP not working properly with translatepressI tried Query Monitor. The original page does show the wp_query() of CRP but the translated page does not show any database_queries.
I don’t know how to explain this so I can only recommend you set up and see for yourself. As I have little knowledge of how to debug with Query Monitor even after reading your debug post.
Sorry I offer no help here.
Noted.
Hi Sybre,
Thanks for the clean code! I’ll use yours for safeguard.
Forum: Plugins
In reply to: [Contextual Related Posts] CRP not working properly with translatepressYes it is the plugin. It’s a very popular and lightweight one.
I’ll try Query Monitor plugin and report back.
Forum: Plugins
In reply to: [Contextual Related Posts] meta_query not workingIt works, thanks for saving my day!