How to get comments with mixed status using get_comments?

As of the WordPress codex there is no such option. But you could just combine two or more comment arrays using plain PHP: array_merge( get_comments( array( ‘status’ => ‘hold’ ) ), get_comments( array( ‘status’ => ‘trash’ ) ) ); http://codex.wordpress.org/Function_Reference/get_comments http://php.net/array_merge

Custom menus displaying all pages instead of set pages

It’s pretty easy then… And it works exactly how it should… You register menu ‘footer ‘ – there’s a space at the end (so you have two locations defined ‘primary’ and ‘footer ‘). And then you use it as ‘footer’ – without that space. There is no such location defined anywhere 😉

Why get_header() or get_footer() does not run twice if called in the same php file?

The actual templates are loaded with require_once, so PHP automatically ignores the second attempt to load them. (You will trigger the ‘get_header’ hook twice though.) Here’s the relevant code in get_header(): $templates[] = ‘header.php’; if ( ! locate_template( $templates, true, true, $args ) ) { return false; } The third parameter to locate_header(), the second … Read more

register_post_type for Pages?

you question is not so clear for understand. Anyway i try to respond… You can use ‘hierarchical’ => true when you declarate you new custom post type. For placing this new menu in some other position in your admin are use the proprety ‘menu_position’ => 5,. Example (to add in your functions.php file): add_action( ‘init’, … Read more

Get user id from email?

You are probably looking for the user_exists function. http://codex.wordpress.org/Function_Reference/email_exists This function will check whether or not a given email address ($email) has already been registered to a username, and returns that users ID (or false if none exists). If the email address does not exist (user_exists returns false), you may want to use the wp_create_user … Read more