WordPress.org

Ready to get started?Download WordPress

Forums

Page template help (1 post)

  1. weestoater
    Member
    Posted 5 years ago #

    Hi there,

    I'm trying to create a new template which has blog posts from a specific category in the main page area and the page content in the sidebar area.

    I've got the posts coming through using the code :-
    query_posts('cat=4&showposts=5')
    then having the-loop write out the posts.

    My problem is that when I try to find the page_id in the sidebar it always tells me 0.

    Can someone please tell me how to keep the page id and then write out the content for that page.

Topic Closed

This topic has been closed to new replies.

About this Topic