Created
August 19, 2014 07:30
-
-
Save ABooooo/bdb3e966f9fb20f0b567 to your computer and use it in GitHub Desktop.
Post loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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