Hi.
At the end of each post I put a slider with related post by category.
I select “offset – not duplicated post in whole page” but the post of the page appears in the slider.
Could you help me please?
Thank you.
Any help please?
Hi,
Please update to the latest version, it looks like you are using v3.8
Try to update manually via FTP: https://vimeo.com/67209750
Or: http://kriesi.at/archives/the-complete-guide-to-updating-enfold
I recommend backing up with: https://wordpress.org/plugins/duplicator/
Best regards,
Mike
Hi Mike.
I have upload the theme, thanks a lot for your help.
But the problem still appearing.
Could you help me please?
Thank you again.
Hi vmoralestejedor,
Have you flushed the caches after the update?
Best regards,
Victoria
Hi.
How can I do it?
I have Total Cache configured, maybe it helps.
Thank you.
I have deleted all cache in W3 Total cache but the issue still appearing.
Could you help me please?
Thank you.
Any help please?
Thank you.
Hi,
We are very sorry for the late response. Please add this query filter in the functions.php file to exclude the current post.
add_filter('avia_post_slide_query', 'avf_custom_post_grid_query');
function avf_custom_post_grid_query ( $query ) {
if(is_singular('post')) {
global $post;
$query['post__not_in'] = array($post->ID);
}
return $query;
}
Best regards,
Ismael
Thank you Ismael but is not working, example in private section.
Could you help me please?
Thank you.
Hi,
Where did you add the code? I can’t find it in the functions.php file.
Best regards,
Ismael
I put your code in functions.php and my blog BROKE!!!
Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/wp-content/themes/enfold/functions.php on line 571
I have reset functions.php