• I’d like to display a specific page as static contents and am looking for the best way to perform this act.

    I’ve found out about get_post(), which returns the posts data, but then the calls like ‘the_content()’ don’t work anymore. I suspect that some of this work is done by start_wp(), but calling it displays the wrong page. Searching the documentation I’m I can’t find any for it.

    Markus

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here’s a plugin option: Get a post

    Thread Starter markusb

    (@markusb)

    I’m working on my own theme to incorporate all my needs in one place. When it starts to become something useful for someone else besides me I’ll publish it.

    For the time beeing I’m looking for clean solutions. I don’t want the theme to break on every new WP release…

    I’ll have a look at the code of the plugin you mention.

    Thanks Markus

    Thread Starter markusb

    (@markusb)

    Apparently you need to call setup_postdata() to set the stuff up. This seems to be the replacement call for start_wp().

    Unfortunately, like many things in WP, there no documentation about the calls whatsoever :-(.

    Markus

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display specific Post’ is closed to new replies.