• I have 6 categories stickied to show up in my featured posts on the home page. As it is right now, when I add a new post to one of these selected categories, it gets added to the top of the section and pushes the other stickied categories down. So if I posts 6 updates to the category “videos” for example, I will have all video stuff displaying on the home page feature posts section. I don’t want this to happen.

    What I want to do is have each of my 6 categories on the home page stay in place and not move, so that when I update one of these categories, the new post replaces the previous category post in the featured section without pushing down the other category posts in the lineup. That way if I have 10 new posts in one category, you can still see all of the other 6 categories on the home page.

    Does anyone know what I need to do to accomplish this??
    The url I’m building the test site on is http://www.musclemilfs.com/blog in case you need to refer to it to get specifics.

Viewing 2 replies - 1 through 2 (of 2 total)
  • you possibly need to loop through the 6 categories, and get one latest post for each of the categories.

    example structure:

    $cats = array(1,4,87,345,32,7);
    foreach( $cats as $cat ) :
    $cat_post = get_posts(array('category__in' => array($cat), 'numberposts' => 1);
    ..etc..
    endforeach;

    http://codex.wordpress.org/Template_Tags/get_posts

    it might help, if you could paste your existing code into a http://pastebin.com/ and post the link to it here, as a starting point for more detailed suggestions.

    Thread Starter xxatti

    (@xxatti)

    Thanks for the reply. I’m a rookie when it comes to php coding, and this theme is a bit confusing in it’s structure. I placed my code from the pages I thought pertained to loop. It’s the featured articles #1 that I’m trying to customize.

    http://pastebin.com/bbtrN5Ff
    http://pastebin.com/0nJ8ASue

    If you or someone else could give me some more detailed help with this I’d really appreciate it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Complex stickied categories problem (Please HELP)’ is closed to new replies.