Forums

[resolved] how to pull up specific post (5 posts)

  1. stabani
    Member
    Posted 3 years ago #

    hi, i was trying to pull up a single post entry (static entry) with the id number 33 (post id number) and want it displayed on my header.. as in I want to see the main text in the header, sort of like an aside. any help?
    Maybe a php/mysql statement?
    sorry if it's a newb question, quite new at this..

  2. Silkjaer
    Member
    Posted 3 years ago #

    <?php $singlepost = new WP_Query('p=33');
    while ($singlepost->have_posts()) : $singlepost->the_post(); ?>

    templatetags here

    <?php endwhile; ?>

  3. Chris_K
    Administrator
    Posted 3 years ago #

    As an aside, you might have a look at the Adhesive plugin.

  4. XoLoX
    Member
    Posted 3 years ago #

    Yes, I'd suggest the Adhesive plugin also, it works well. I have it.

  5. stabani
    Member
    Posted 3 years ago #

    Ok, thanks for the input.. :-D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.