How to display current page information
-
I’m using WP as a CMS where a page is a template and posts are “articles”.
I have a page (template) that displays a list of posts within a specific category. No sweat.
Now I want to display some general information before the post list. Something like:
“This is a list over the hottest designers in Norway. If you are not on the list, and you should be, let me know”.
{Then the list starts}
The page has the following attributes: Title, Page, custom-fields and so on.
I would like to display the page TITLE and the PAGE information.
Looking at page.php they use the following code:<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_content; ?> <?php endwhile; endif; ?>
This however does not display the information in the Page attribute.
Any suggestions anyone?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to display current page information’ is closed to new replies.