wp-query, pull children of parent page

If it’s a child page, the post_parent will be a non-zero value, so you could check for that: if( 0 == $post->post_parent ){ // no parent, get children of this page $childargs[‘post_parent’] = $post->ID; } else { // has parent, get children of parent page $childargs[‘post_parent’] = $post->post_parent; } This is assuming your child pages … Read more

Query outputting YouTube url rather than embedded video

The problem is that as you are calling the function directly, there are filters that arent being called, you can fix this by calling the apply_filters function using the_content filter, like this. apply_filters( ‘the_content’, $content ); Where $content is the result of get_the_content()

WP order ASC in custom author loop

To add to @Rarst answer, there are a couple of other problems in your code. As stated, get_users_of_blog() has been depreciated. You’ve said that you did try get_users(), but it did not work. The reason for that is, the returned objects have changed with the function. You should do a var_dump to see what objects … Read more

Post archive for certain post format

Post formats are actually terms of the taxonomy post_format. I have done a post about this what taxonomies are and their hierarchies which you can check out here To get a list of all terms under the taxonomy post_format, simply use get_terms and var_dump() the result $terms = get_terms(‘post_format’,’hide_empty=0′); ?><pre><?php var_dump($terms); ?></pre><?php This will print … Read more