Hi
The unique article was designed to affect all blocks from the page and to exclude one of them are required some custimzations in theme’s core files. You can try the solution indicated by Bogadan here to achieve a similar rezult: https://forum.tagdiv.com/topic/disable-unique-articles-on-specific-block/ The solution is from Newspaper theme but should work for Newsmag as well because the code is the similar.
Thanks!
I tried, but that code doesn’t work. I tried to exclude module_mx3 and module_14 for excluding block 13 from unique, but it’s still the same. :/
// exclude td_module_trending_now din unique articles
if (get_class($module) != 'td_module_trending_now') && get_class($module) != 'td_module_14') {
self::$rendered_posts_ids[] = $post->ID;
}
Hi,
The code works, but in opposite. The module chosen is excluded from the Unique and the article of that module is published again in other modules/blocks of my page. I would like that the module chosen on the contrary overlook Unique in order to publish the first article of that category/tag in any case.
Hi
Sorry for the delay but we had to make some additional investigations on this.
Current implementation of unique article feature can’t avoid a specified module because it works like this:
– for each block displayed on page the theme make a specific query and display posts depending by filters set. When unique article is enabled the query had an additional parameter which avoid posts already displayed on that page. Basically it tells to the query: for second block from this page do not display posts which were displayed in first block.
Let take ans example where we have two blocks on the page and unique article it’s enabled. You can’t remove the first block from unique article feature because the theme won’t know what posts will be displayed in next block.
You can only avoid the second block from unique article by “telling” the query: display in second block and posts which were displayed in first block.
So if you want to remove a specific block from unique article basically you need to add the modules which generate previous block in indicated function: http://screencast.com/t/IchzFKGnZ
I hope this helps.
Thanks!