Created
January 4, 2017 11:52
-
-
Save serkanalgur/5bc97fa3b2bf42662e0f2c10fcbdd704 to your computer and use it in GitHub Desktop.
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
// Sorgu | |
$the_query = new WP_Query( $args ); | |
// Loop Döngüsü | |
if ( $the_query->have_posts() ) { | |
echo '<ul>'; | |
while ( $the_query->have_posts() ) { | |
$the_query->the_post(); | |
echo '<li>' . get_the_title() . '</li>'; | |
} | |
echo '</ul>'; | |
} else { | |
// Yazı bulunamadı | |
} | |
/* Orjinal yazı bilgisini sisteme geri verelim */ | |
wp_reset_postdata(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment