1. I’m having trouble generating the page title in header. I use the block element for the header – on every page, excluding the start page. I am using the code to get the title shortcode:
add_shortcode( 'page_title','tu_page_title_shortcode' );
function tu_page_title_shortcode()
{
return get_the_title();
}
Everything is ok on the subpages and in the articles, however, the Blog shows the name of the first article instead of the name of the category. How to fix it?
2. what is the shortcode to display the category description?
3. I also have a question, how can I hide the display of the post / page title, description (eg. category) in the content (I want it to be displayed only in the header)