Topic: How to Remove Sticky Posts from News Posts section?

As seen here on my front page: http://danbirlew.com I set my News Posts section (named "Recent Headlines") to display "All Categories", "Per Line," and only 6 posts. However, 9 posts are showing, including the sticky posts. How do I change the settings or the code so that only the bottom 6 headlines display in the News Posts section?

Thumbs up

Re: How to Remove Sticky Posts from News Posts section?

Anyone?

Thumbs up

Re: How to Remove Sticky Posts from News Posts section?

Arrgh, never mind I guess. I just won't use the sticky posts. It's really stupid to go crazy with them and have them appear at the top of EVERY section of the home page, because then the same posts appear in every section and it looks really redundant and dumb. The sticky posts should only appear in the slider or the Featured Posts, and only if selected. But the way Arras is set up, they appear anyway even if not selected.

Thumbs up

Re: How to Remove Sticky Posts from News Posts section?

Found a solution on my own, though it's not pretty. Find the line of code in home.php under <!-- News Articles --> that says:

query_posts( apply_filters('arras_news_query', $news_query_args) );

Press enter to make a new line after it, and paste:

query_posts(array("post__not_in" =>get_option("sticky_posts")));

It removes the sticky posts from the News Posts section, but the News Count is still thrown off. As you see on my home page now, I have 8 posts showing in the News Posts section while in the Arras Theme Options I've specified 6.

Thumbs up