-
AuthorPosts
-
June 20, 2019 at 2:14 pm #1111956
Hi there!
Thanks for your support.
I need to have related posts on the single post and I don’t need that the same article is shown twice. I’ve already have a page (https://www.edizionikalos.com/news/) where I have used “Do not allow duplicate posts in the entire page” and there it works. I have used the same setting on my single post and in the lasts 4 posts that I have created it seems it doesn’t work (for example you can visit this single posts or each of the firsts 4 posts https://www.edizionikalos.com/rassegna-stampa-del-volume-civilta-del-sole-in-sicilia/).
Could you help me? Do you have any advices? Because I don’t want to see in the related posts the one that I’m already reading.
I’m leaving user and password so you can see if I wrong something.Thanks a lot in advance
Guendalina
June 21, 2019 at 7:11 am #1112207Hey guenda84gg,
Please refer on Mike’s answer in this thread: https://kriesi.at/support/topic/enable-related-posts/#post-1073710
Hope it helps.Best regards,
NikkoJuly 2, 2019 at 7:27 pm #1115258Hi,
I’ve tried to solve the problem with your plug-in and it seems to work, but I have a problem about the visual. I need to have the visual as the one that I can have when I use the element “article”. Could you please help me? I’m attaching the screen shot of what I see in this moment using both the elements. The first line there is what I obtain with “related post” element, under there is what I obtain with “article” element. Is it possible to have the same visual result? this is the article where I set the “related” element https://www.edizionikalos.com/rassegna-stampa-…lo-sguardo-in-su/
this is the link to the screenshot https://ibb.co/ftJL2bD
thanks a lotGuendalina
- This reply was modified 5 years, 5 months ago by guenda84gg.
July 2, 2019 at 9:59 pm #1115284can you try this in your child-theme functions.php:
function ava_exclude_current_post($query) { if (is_singular('post')) { $exclude = avia_get_the_ID(); $query->set( 'post__not_in', array($exclude) ); } } add_action('pre_get_posts', 'ava_exclude_current_post');
thanks ismael: https://kriesi.at/support/topic/how-to-change-related-post-style-to-grid/#post-1084541
July 3, 2019 at 8:13 am #1115366Hi Guendalina,
Please follow Guenni’s instruction.
@Guenni007 thanks for helping out :)Best regards,
NikkoJuly 4, 2019 at 12:36 am #1115604Thanks a lot, now it works!
Guenda
July 4, 2019 at 9:18 am #1115678 -
AuthorPosts
- You must be logged in to reply to this topic.