Forums

Splitting Posts (2 posts)

  1. notreallysure
    Member
    Posted 2 years ago #

    Hey,

    I want to grab a specific category and split it from my recent posts
    I tried to use the sticky and put it in a separate div but it either makes my other posts disappear or if I set it so more than just the sticky shows, it puts the sticky in the div with my other posts instead

    <?php $sticky=get_option('sticky_posts');
    query_posts('p=' . $sticky[0]);?>

  2. notreallysure
    Member
    Posted 2 years ago #

    Nobody seems to know, so I'm going to try to rephrase my question:

    I would like to do 1 of 2 things:

    #1 I have a "featured" category and I want to be able to check that a post falls under this category and it appear at the top of my page, separate from the other posts
    -OR-
    #2 I would like to be able to check "make this post sticky" and it have the same effect (thus doing away with the category)

    How do I separate it? No matter what code I seem to put in the div I've created at the top, they both appear within the same div at the bottom of the page!

    I've been working on this for about 2 days...
    Help?

Topic Closed

This topic has been closed to new replies.

About this Topic