• #4534
    Refresh Thread
    By: Nation This person is cool! x Show Full Post
    Reply
    Wordpress Theming

    I am working my way through customizing a wordpress theme and want to try to pull a specific post (I have the post ID) onto a page.

    Anyway, if you have experience with wordpress themes and have an idea for me I would love to hear it ... I am sure there is a way I am just missing.
    Jan 24, 2008 5:21pm PST
    toggle
    Wordpress Theming I am working my way through customizing a wordpress theme and want to try to pull a ... : NationThis person is cool!

    Thread Truncated. Click to see all 12 replies.

    • toggle
      i was so disappointed when i first looked at wordpress code. Try $id = 123; the_title(); the_conte : sikanderThis person is cool!
      • toggle
        if it is that simple I am going to scream ... : NationThis person is cool!
        • toggle
          nope, that did not do it ... no screaming at this point : NationThis person is cool!
          • toggle
            is there any error when you try that ? do you have the wordpress includes in place ? : sikanderThis person is cool!
            • it spits out the related title and content of the page .... not the post I am trying to pull from. : NationThis person is cool!
            • something like : <?php $wp_did_header = true; require_once( dirname(__FILE__) . '/wp-config.php'); : sikanderThis person is cool!
      • toggle
        any other ideas? : NationThis person is cool!
        • toggle
          try $id = 123; $post = &get_post($id); echo $post->post_content; : sikanderThis person is cool!
          • toggle
            that brings in the content, with links and bolds and all ... but lacks the linebreaks and paragraphs : NationThis person is cool!
            • try $id = 123; $post = &get_post($id); echo the_content(); heh, i'm just guessing without looki... : sikanderThis person is cool!
    • How about this? http://codex.wordpress.org/Function_Reference/get_post : K1Bond007This person is cool!