Created
September 6, 2013 08:05
-
-
Save remcotolsma/6460871 to your computer and use it in GitHub Desktop.
Example of WordPress action for WordPress User Query filter on author of specific post type. https://gist.github.com/remcotolsma/6460846
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
<?php | |
$user_query = new WP_User_Query( array( | |
'orderby' => 'ID', | |
'prefix_post_type' => 'blog' | |
) ); | |
$users = $user_query->get_results(); | |
foreach ( $users as $user ) { | |
echo $user->display_name, '<br />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment