djallel
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Popular Posts] Problem with WPP and WPMLOkey, thank you very much for your help.
It is now marked as resolved.Forum: Plugins
In reply to: [WP Popular Posts] Problem with WPP and WPMLAlready did, and it works.
Just wondering why this was the problem, was the js library called using the actual url ?Forum: Plugins
In reply to: [WP Popular Posts] Problem with WPP and WPMLHello again @hector,
I think i figured it out why the views on my english posts aren’t counted, i found out that an error was firing in the browser console log, which is the following :
POST http://localhost/wordpresslab/wp-json/?lang=en/wordpress-popular-posts/v1/popular-posts/ 404 (Not Found)i think there is something to be done about the ?lang=en par of the url, it is added automatically in the english version of the website.
also i found one small possible mistake in the WPP_Output class, in the method get_excerpt :
$excerpt = ( empty($the_post->post_excerpt) ) ? $the_post->post_content : $post_object->post_excerpt;I think it was meant to be :
$excerpt = ( empty($the_post->post_excerpt) ) ? $the_post->post_content : $the_post->post_excerpt;Forum: Plugins
In reply to: [WP Popular Posts] Problem with WPP and WPMLOk i’ll be in touch.
Thank you1.Forum: Plugins
In reply to: [WP Popular Posts] Problem with WPP and WPMLThank you for your quick response.
That’s what i was expecting when i installed the plugin, but i guess there is an issue somewhere because this is not the result i’m getting.
As i said above, only the the french posts are displayed, even it the chosen language of the website is English, even if a translation is available for those posts. Adding to that, the views of the translated posts are not counted for the original post.
Hi again,
Happy to hear that,
Please keep me posted of your researches maybe i will need it someday.Thank you.
Hello @gaultierfrng,
Yes you guessed right, to display the event starting date and the location, you need to use the meta_key. Here’s how to do that :
1- Create a custom grid element with the grid builder of WP Bakery for your event posts
2- Insert a custom field
3- The field key name for the event start date is : _event_start_date and for the location should be : _location_nameGood luck.
I know and i did, but it should be dealt with from the plugin side, because the post grid is calling the default get_posts() method
In the admin page there is a filter applied to show only future events.
You need to change that in the listing, after “Grouped action”, select it to “all events” then apply the filter.Hope this was clear.
Thank you for your answer.
I know about that, i’m using it in a different section on my website. But the problem is when using it with the Post Grid element from WPBakery (Visual Composer), where we can’t choose the list that we need or the way its elements are sorted.