Created
August 31, 2019 13:45
-
-
Save bilalmalkoc/45291277fdd76591ea02a281930c7dde 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
// Tek ögeli dizi için tek satır kullanılmalı. | |
$query = new WP_Query( array( 'ID' => 123 ) ); | |
// Birden fazla ögeli dizilerde $args gibi değişkene atanarak | |
// her bir öge için ayrı satır oluşturulmalı. | |
$args = array( | |
'post_type' => 'page', | |
'post_author' => 123, | |
'post_status' => 'publish', | |
); | |
$query = new WP_Query( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment