• Please i need to include the contents of a post on a page, i want the page to look exactly like a post (post heading, message) please can anyone help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter bigtoff72

    (@bigtoff72)

    Thanks Esmi.

    Thread Starter bigtoff72

    (@bigtoff72)

    i have created the PageOfPosts.php file but is it possible to have a different post from my front page, i need it to be blank so that i can input new posts on it. I am a bit of a novice so please help

    To show the most recent post from your front page, try replacing:

    $showposts = -1; // -1 shows all posts
    $do_not_show_stickies = 1; // 0 to show stickies
    $args=array(
       'category__in' => $cat,
       'showposts' => $showposts,
       'caller_get_posts' => $do_not_show_stickies
       );
    $my_query = new WP_Query($args);
    ?>

    with:

    $showposts = 1; // show only 1 post
    $do_not_show_stickies = 1; // 0 to show stickies
    $args=array(
       'posts_per_page' => $showposts,
       'orderby' => date,
       'caller_get_posts' => $do_not_show_stickies
       );
    $my_query = new WP_Query($args);
    ?>
    Thread Starter bigtoff72

    (@bigtoff72)

    Esmi is it possible to have two posts in one Blog? thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HELP’ is closed to new replies.