Sidewide Unique Article System

Posted in: Newspaper
Post count: 94

Hi,

I have a question regarding the Unique Article System the theme uses.

Is it possible to have this feature site-wide, instead of only on the homepage or another page?

When I click on an article on my site (www.techplanet.nl) it shows the actual article and in the sidebar a list of other articles. It very often occurs that I see the same article twice on the same page. Exactly the thing I want the Unique Article System to avoid!

Proof:
http://goo.gl/LPLSsp
http://goo.gl/Qp5Ke2
http://goo.gl/t5CDHb

The sidebar is custom and is using a Block 2.

Can you please let me know how to solve this?

Thanks you 🙂

Post count: 1291

Hi,

1. It is possible with custom modifications, but it’s not an easy task.
2. The sidebar issue is also complicated, you can put some conditions if (is_post()) to target the block only on the post page and another one to exclude the current post from the query. You have to apply those modifications inside the td_block2.php file – http://screencast.com/t/KKGBJB98GsP7

Thank you, Emil G.

Post count: 94

Hi Emil,

Hmm, that is pretty disappointing. Since the theme is advertised as having a Unique Article System. So it actually is only a partial working/implemented system 🙁

Maybe you can put this on the new idea-list for the next version?

Argument: real life newspapers also never have overlapping articles, nowhere. Not just only on the front page. Something to think about….

Andre

Post count: 6600

Hi,

Thank you for your suggestion, I will add this to our issue tracker, but because we have over 140 feature requests we have to pick very carefully what we implement. If more people request this feature we will do it.

Thank you for your understanding

Post count: 4

Hi,

I would also like this feature. Totally makes sense.

I had the same issue in Block 4. I put the recommended code after the foreach loop in the inner() function.


....
foreach ($posts as $post) {
   if(!is_single($post->ID)) {

   ....

   }

BR, Claudio

Post count: 94

Hi Garfieldx!

Great that there is another person that requests this feature. (that should have been in there in the first place)

And because Lucian said “If more people request this feature we will do it.
we can expect the feature soon 🙂

Keep up the great work guys at TagDiv!

Post count: 3343

Hi,
A simple solution is to exclude the current post from each block that appears on that post page. To do that add this code like here: http://screencast.com/t/TEmTsIpX3Ea5

if (is_single()) {
   $wp_query_args['post__not_in'] = array(get_the_ID());
}

Thanks for the message!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.