Hi there,
Im trying to make a list of post with a specific category.. I want the_content, some text and a custom field with the title displayed.. I havn´t included the custom field yet in the code. I want every post in a section so I can style it proberly.
At the moment i getting a "unexpected end of file" error.
Hope anyone can help in here...
Have a great day
<div id="main3" class="tencol first clearfix" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
$args = array('category_name=recipes&showposts=100'.'&orderby=date&order=asc');
$postlist = get_posts($args);
foreach ($postlist as $post) {
setup_postdata($post);
if (the_content()) {
echo '<section class="entry-content clearfix">';
the_content();
echo '</section>';
}
else {
echo ' ';
}
}
?>
</div>