How to make title for home to be News, but if page has parent then its name else just post/page name
题
Made own template from scratch and tutorials. This is showing description of post/page Title and in home its showing website name.
<h3><?php is_home() ? bloginfo('description') : wp_title(''); ?></h3>
I wanted to change that if home page then that it writes News and if page then its name but if page is subpage then parent name.
没有正确的解决方案