Hi, first I want to say this is a great plugin.
I have an online store and I use this plugin to show specific related products by using [ic_add_posts ids=’1,2,3′].
However the problem is every time I do that, my post also display my sticky post. So it will shows post ID 1, ID 2, ID 3 + sticky post.
I’m wondering how to get rid the sticky post.
Anyway, I change
<?php the_excerpt(); ?>
global $more; // Declare global $more (before the loop).
$more = 0; // Set (inside the loop) to display content above the more tag.
Thanks in advance and sorry for my bad english.
I think eventually we’d like to allow a user to indicate they’d like to ignore sticky posts. I’ll try and get an update out soon, but it’s a short week for us here (Thanksgiving and the day after are off days). It’ll probably be next week.
In the meantime, you can prevent the sticky from being displayed with a snippet of code before and after the other code in the loop, like such:
<?php if( !is_sticky( get_the_ID() ) ): ?> ... rest of the loop here... <?php endif; ?>
We’ve made an update to this plugin and will be testing it this morning and, hopefully, releasing an update that will solve your sticky posts issue before 11am PST.
- The topic ‘Hide Sticky Post’ is closed to new replies.