Created
August 31, 2019 13:41
-
-
Save bilalmalkoc/7918c46dd153d4f38cb92a6e0f830d12 to your computer and use it in GitHub Desktop.
This file contains 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
// foreach için örnek | |
foreach( $items as $item ) { | |
echo $item[ 'title' ]; | |
echo $item[ 'url' ]; | |
echo $item[ 'description' ]; | |
} | |
// if else için örnek | |
if( have_posts() ) { | |
echo 'Yazı Bulundu!'; | |
} else { | |
echo 'Yazı Bulunamadı!'; | |
echo 'Tüh :('; | |
} | |
// array için örnek | |
$args = array( | |
'echo' => false, | |
'include' => array( 1, 2 ) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment