How to list pages from an author?

And add the username to the array https://codex.wordpress.org/Function_Reference/get_pages <?php $args = array( ‘sort_order’ => ‘asc’, ‘sort_column’ => ‘post_title’, ‘hierarchical’ => 1, ‘exclude’ => ”, ‘include’ => ”, ‘meta_key’ => ”, ‘meta_value’ => ”, ‘authors’ => ”, ‘child_of’ => 0, ‘parent’ => -1, ‘exclude_tree’ => ”, ‘number’ => ”, ‘offset’ => 0, ‘post_type’ => ‘page’, ‘post_status’ … Read more

Set different heights per screen size with inline styles CSS into the ‘Text’ section of a Page

You should use Media Queries. Give that element a class & style it through media query following different screen sizes. Here is the sample: HTML <div align=”center”> <div class=”resolution”> <div style=”position: relative; padding-bottom: 50.00%; padding-top: 35px; height: 0; overflow: hidden;”> <iframe style=”position: absolute; top: 0; left: 0; width: 100%; height: 100%;” src=”https://wordpress.stackexchange.com/questions/352152/html-websiteaddress” width=”640″ height=”360″ allowfullscreen=”allowfullscreen”></iframe></div> … Read more

Return true if parent page id matches

You can get all ancestors with get_post_ancestors. The root ancestor is the last element of the returned array. Here is the function that checks a target page id against the root ancestor of current page: function check_page_parent( $target_page_id ) { $ancestors = get_post_ancestors( get_the_ID() ); if ( $ancestors ) { $top_most_parent_index = count( $ancestors ) … Read more

Display latest comments (global) with replies on a page

Try with array method, using reply post type with its parent. <?php $args = array( ‘post_type’ => ‘reply’, ‘status’ => ‘approve’, ‘post_parent’ => $postID, ‘posts_per_page’ => 50, ‘orderby’ => ‘date’, ‘order’ => ‘ASC’, ‘hierarchical’ => true, ‘ignore_sticky_posts’ => true, ); foreach(get_comments($args) as $comment) :?>