-
AuthorPosts
-
March 6, 2019 at 11:23 am #1075450
Hi,
I’m using masonry for creating “Related posts” section in the bottom of blog posts. Is it possible to prevent it from showing the very same blog post where masonry is placed?
Also, is there a way to choose specific posts to show in each masonry?
Thank you in advance!
Regards,
Artem-
This topic was modified 7 years, 1 month ago by
artemtik.
March 9, 2019 at 3:22 pm #1076773Hey artemtik,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
BasilisMarch 13, 2019 at 9:57 am #1078203Hi Basilis,
Got it, thank you for reply! ;)
Regards,
ArtemMarch 18, 2019 at 1:48 pm #1079881Hi,
This filter might help.
add_filter('avia_masonry_entries_query','avia_masonry_entries_query_mod', 10, 2); function avia_masonry_entries_query_mod($query, $params) { if(is_singular('post')) { $query['post__not_in'] = array(avia_get_the_ID()); } return $query; }Best regards,
IsmaelMarch 18, 2019 at 2:14 pm #1079892Hi Ismael,
Thank you, but unfortunately it didn’t help (cleared browser’s, CDN’s and W3C plugin’s caches).
Regards,
ArtemMarch 19, 2019 at 6:37 am #1080227Hi,
Thanks for the update.
Could you give us a link to the page with the masonry element? We’d like to check it.
Best regards,
IsmaelMarch 19, 2019 at 11:06 am #1080294March 19, 2019 at 7:59 pm #1080489Hi Artem,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
This topic was modified 7 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
