I´m having a problem with sticky and recent posts
I wan to have in the front page of my blog (http://bloggertone.com/) allways 4 posts. And I want to be able to (if i want) use sticky posts in order to my convenience.
What i´ve first done is to query last 4 posts, but if i´ve selected 2 stickies the frontpage showed me 6 posts (2 stickies first, then 4 recent)
So what i did is this query
<?php query_posts('caller_get_posts=0&cat=-19&showposts='. ( 4 - $sticky ));?>
Everything seemed to be OK but then i´ve realized that if i marked one recent posts as sticky, the frontpage only showed me 3 posts (4 posts – 1 sticky)
Does it makes any sense ?
Is there a way to fix this ?
- The topic ‘Problem with Sticky and Recent Pots’ is closed to new replies.