• Please help!!

    I want to keep one post in the front page. i have achieved this already by assigning one post in the reading, but when i publish a newer post, that post is also appearing in the front page. i have tried to use as the instructions in the codex and inserted this code:

    $sticky = get_option( ‘sticky_posts’ );
    query_posts( ‘p=’ . $sticky[0] );

    in the functions.php, it works but then in my backend, i only get in the posts and pages section that post to appear.

    can someone please advice? thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why not create a page with the same info as the post and set that as the front page?

    Thread Starter gurusurfer

    (@gurusurfer)

    Thanks for your reply, so then i would need to set a canonical url since i would have a post and a page with the same content. whick one would you think i should direct to?

    Hi gurusurfer,

    Are you using a static page as your front page?

    Also, what exactly are you trying to do?

    1. Create a front page (which is static, not your blog archive) showing only one post, which is the latest post?
    2. Show one post on your front page (which is static, not your blog archive) and that post is always the same?
    3. Show only one post (the latest) on your main blog archive page, which IS your front page?
    4. Show only one post (which is always the same) on your main blog archive page, which IS your front page?

    Does this make sense? 🙂

    I would use one or the other…in your case, since you want content on front page to be the same, remove the post and add a page with the current content of that post and set that page to front page…done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need only one Post on frontpage’ is closed to new replies.