How to make title for home to be News, but if page has parent then its name else just post/page name
Pregunta
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.
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a wordpress.stackexchange