Add Link to PHP message

Add this Code in your function.php file function mito_login_message( $message ) { if ( empty($message) ){ return “<p><a href=””>hyperlink</a> Please login to continue</strong></p>”; } else { return $message; } } add_filter( ‘login_message’, ‘mito_login_message’ );

check if page have children, but not attachment

You should specify the post_type for the get_children() function, which can be one of attachment, page, revision or any and considered to be any by default: $children = get_children( array( ‘post_parent’ => get_the_ID(), ‘post_type’ => ‘page’ ) );