Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created August 19, 2014 07:30
Show Gist options
  • Save ABooooo/bdb3e966f9fb20f0b567 to your computer and use it in GitHub Desktop.
Save ABooooo/bdb3e966f9fb20f0b567 to your computer and use it in GitHub Desktop.
Post loop
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
// add title, content, custom field, ...
echo '<div class="posts">';
echo the_title();
echo get_the_content();
//the_content('Preberi več...');
echo '</div>';
} // end while
} // end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment