Home › Forums › Back End › conditional PHP in wordpress theme › Re: conditional PHP in wordpress theme
Oh, that error is referring to was referring to this….
I’m also trying to get the home page to display sub page and am having some problems with now…
I got this $pages code off the wordpress site…I’m not sure where to put it. I tried putting it the div with the content but it’s not working.
If you go to the page now you won’t get that same error. The page will load but the sub pages don’t show up??
” rel=”bookmark” title=”Permanent Link to “>
ID.’&sort_column=post_date&sort_order=desc’);
$count = 0;
foreach($pages as $page)
{
$content = $page->post_content;
if(!$content)
continue;
if($count >= 2)
break;
$count++;
$content = apply_filters(‘the_content’, $content);
?>
ID) ?>”>post_title ?>
No Results Found
The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.