Loop inside page template not working

From https://wordpress.org/support/article/creating-a-static-front-page/, Posts Page: (if not already created) create an empty page. Give it a Title that will be used on top of your posts list. This step is mandatory as you are modifying the WordPress default setting. Any other content other than Title will no be displayed at all on this specific page. So, … Read more

Adding page Title in a custom coded page

function my_doc_title($title, $separator){ if(is_author()) // <- replace this with your custom page; maybe is_page_template(‘myprofile.php’) ? $title = get_the_author_meta(‘display_name’, get_query_var(‘author’)).$separator.get_bloginfo(‘name’); return $title; } add_filter(‘wp_title’, ‘my_doc_title’, 10, 2); (functions.php)