Current location - Recipe Complete Network - Complete cookbook - How to modify the title of a directory
How to modify the title of a directory
Use plugins, categories? Meta? plug-in component

Non-plug-in, see the figure below.

& lt! -Under the theme catalogue of header.php.

Can be directly defined or get_option () is displayed->; //( 1) in the form of get_option ()?

//Learn the format of the get_option () function first:

& lt? php? Echo? get _ option($ show sth); ? & gt or

Here $ showth can be defined by itself, and the specific operation can be queried in wp_options table;

take for example

& lt? php? $admin_email? =? get _ option(' admin _ email '); ? & gt? //Get the email address of your blog, and someone will send you an email when posting.

& lttitle & gt& lt? php? What if? (? is_home()? )? {

bloginfo(“name”); ? Echo? "? - ? Customize casually "; ? //If it is the home page, the title will be displayed: Station Name-Customize at will.

}? Elser? (? is_category()? )? {

single _ cat _ title(); ? Echo? "| Customize at will"; ? //It is confirmed here that if it is a classified directory, the title will be displayed: Name of classified directory | Customize at will.

}? Elser? (is_single()? ||? is_page()? )? {

single _ post _ title(); ? Echo? "? -? Customize casually "; ? //If it is an article page, the title will be displayed: Article Title-? Casual customization

}? Or what? {

wp_title(',true);

}? & gt& lt/title & gt;

3. In or with all search engine optimization plug-ins, all web pages can be customized with titles, keywords and descriptions.