In order to have two blogs on one website, I was able to put in the menu two categories: DOCUMENTATION and ACTUALITES.
My problem is in the header. The titles are displayed well however for both categories, the titles correspond to the title of the last article of the page…
You can see an example in the picture (You will see that the CONTACT page is OK but for the DOCUMENTATION and ACTUALITES pages the titles are those of the last article).
I would like to replace these article titles with those of the DOCUMENTATION and ACTUALITES categories.
I think I have found the problem code but I don’t know how to solve it.
I want to create a shortcode that pulls value from a custom field of a post and parses that value on Post title, post content.
I have a custom post type with a custom block to collect required data and store it in post meta data or standard fields like title or slug, so I don’t want to display the Title block. I can’t disable title support in the CPT, because too much else depends on it.
The <title
> tag in pages for post edit is Edit Post < Site name — WordPress
. I want to change it to Edit Post < Site name – The title of the post in editing
. Is this possible? Where can I locate the header of this page? Apparently it cannot be in the theme.
Firstly, add_theme_support( 'title-tag' );
is enabled in my theme.
I’m trying to modify the WordPress page title.
However I’m fairly new to WordPress functions, hooks (filters & actions) and so on.