• I have a custom page template which uses query_posts(). It creates posts depending on the category. Ok! If i put 6 in the editor or post, query_posts() will get the 6 and display all of those the posts from the category. I don’t want to display the 6 in the page though.

    I tried like this.

    <?php query_posts( array( ‘cat’ => 6, ‘paged’ => get_query_var(‘paged’) ) );?>

    Website Link :: http://www.lisu.us.to/countries/malaysia/

    P.S I am a high school student and a noob to wordpress. So, please please explain.

    Thanks in Advanced.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fetch string from the post and use it in a template or query_posts()’ is closed to new replies.