• Hi,
    I am just about learning, so please excuse me if i am asking the obvious.

    I have 2 pages
    Page 1 = Poetry, page_id = 101
    Page 2 = Humor, page_id = 102

    Both pages have a static piece of text, below which i would like to show a list of post_titles, that belong to the parent category ‘poetry’ & ‘humor’

    My template seems to have a page.php.
    Here i would like to check which page is being viewed

    if(page_id=101)
    <?php query_posts(‘category_name=poetry’); ?>

    if(page_id=102)
    <?php query_posts(‘category_name=poetry’); ?>

    I am not sure how to put in the code for pageID.
    Any help is great help
    Thanks in advance
    Regards
    Deepa

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Check for page ID & query posts for particular category’ is closed to new replies.