Page with custom fields and a loop of posts
-
Hi Guys.
Bit of a head-scratcher here.
I want to have three pages, with category specific blog loops, an editable intro and page-specific sidebar content.
I thought that adding a loop (pasted directly from loop.php) to a page template along with custom fields to handle the sidebar content would do the trick. But that is not the case.
It seems that calling the custom field outside of
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
results in nothing, but calling the loop from within that leads to the loop repeating infinitely.Ultimately I am looking for the best practice for creating a page of posts that allows for 2 page-specific editable text areas.
Example pagehere.
Using this page template.Thanks!
- The topic ‘Page with custom fields and a loop of posts’ is closed to new replies.