Hi,
Add this code:
global $post;
if (is_singular()){
$args['post__not_in'] = array( $post->ID );
}
..to the td_data_source.php file, like this: http://screencast.com/t/K8DVFT2LCb
This should exclude the current post from block queries on post pages and on pages you can use the unique articles feature: http://screencast.com/t/tfK8gAnhxQ
Thanks
Hi,
Navigate to themes files into your wp files and follow this path: http://screencast.com/t/2vU35MpmS7 ..\wp-content\themes\Newsmag\includes\wp_booster\td_data_source.php
Let me know how it goes!
Thanks
Hi danoah,
I have pointed that this applies and affects just single post pages so I’m not sure why you refer to your homepage, for pages we have the unique articles feature: http://screencast.com/t/tfK8gAnhxQ
Please also provide your site’s URL so I can access it and point me to a page on which I can see this behavior.
Thanks!
Hello, here is an example. You will see in the sidebar block, it has the same post as one of the blocks in the footer.
http://www.danoah.com/2015/08/and-that-son-is-why-we-dont-do-drugs.html
Home page issue was resolved.
I have implemented the code above as you said.
Hi,
I see now that you were referring to sidebar posts not the current post viewed: http://screencast.com/t/LCKhnjfHl8T
Unfortunately other than taking advantage of those specific blocks filters and control the queries made there to avoid duplication you can’t control this on post pages. Sorry!
Sorry for the inconvenience!
Thanks for the message!
Hi Lucian and Tagdiv-Team! …
I have to agree with danoah. My magazine is growing fine and it becomes quite complex right now. A sidewide system for unique articles would be more than awesome!
For example:
You are reading the newest article of our magazine. On the sidebar there are widgets like “newest articles” – most favourite within the last 7 days … and so on … Sometimes one article is shown up to three times within the “single.php” (including sidebars and footer widgets) …
And this does not look like a professional magazine, then … 😉
As you know – I just love your theme! But this is really a MUST HAVE feature for a magazine and online-newspaper.
So please, it really would be awesome, if the tagdiv team could find a quick solution for this! 🙂
Warmest regards,
Torsten
Hi Lucian,
thank you for your feedback! 🙂
The theme continuously grows up from premium to deluxe. 😉
Best regards
Torsten
Hello, mai I ask how can i do it on the current latest version? (different from screencast you shared). Thanks in advance
