Since WP 4.4 you can change document title using document_title_parts
filter hook, in earlier versions it will be wp_title_parts
(since v4.0) or wp_title
filter.
add_filter( 'document_title_parts', 'se333744_site_title' );
function se333744_site_title( $title )
{
if ( isset($title['title']) && strlen($title['title']) && !is_front_page() && is_archive() )
$title['title'] = ' {some prefix} ' . $title['title'];
return $title;
}
Related Posts:
- Replace category titles
- WooCommerce: List All Categories
- How can I hide a category from Contributors in the edit/add new post screen?
- Category page doesn’t use category.php, instead it redirects to homepage
- Multiple post categories – single permalink
- Wrap Post count in a span
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Create product category and keyword search form in woocommerce? [closed]
- How can I create a loop to build slides based on multiple categories using Coda Slider
- Saving two categories from two dropdowns in front end posting form
- Categories list loop – add separator every year
- How would you create a “weekly” archive?
- Exclude most recent posts from specific category in wp_query()
- Display all posts with same title
- Show children of top level category only
- hide specific categories from showing
- Category Search functionality on category metabox (wordpress admin)
- How to get category id in single.php wordpress?
- how do I filter single_cat_title to remove all instances of a particlular word
- Category page shows Oops! That page can’t be found
- How can I enable a TINYMCE rich text editor in the admin interface?
- WordPress order categories by ID
- ACF: Display category name using taxonomy field
- query order by category
- How to make 2 tag feeds show up on 1 page?
- Shortcodes not working in category or tag description
- Best way of getting WooCommerce category path
- Display the last post by each category?
- Post in multiple categories
- Order categories by name or view count
- Mod_Rewrite to show only last subcategory in URL
- wp_dropdown_categories() scripts working erratically on sidebar
- Access current post parent and sub category
- Give a page priority over a category that has the same name?
- How to exclude the last post from a category(featured for example) from the main loop?
- How to rewrite the post URL according to the category?
- Sticky post for each category on category pages [duplicate]
- ajax for filtering posts by category in wordpress loops
- Create category post shortcode
- get parent category only
- Question on using custom structures for categories
- new WP_Query all post in a category inside the loop
- How to add orderby parameter for sorting on category.php
- delete category name in the pages
- Wrong category nice name is displayed on archive page
- How to show only the name of one category above each posts in frontpage?
- Multiple categories for one menu item?
- Tags Instead of Category
- Cannot filter categories by parent category
- Remove category link
- javascripts files not linking to my category slugs?
- Generating a feed of all but one category of posts
- Pretty URLs with Categories and Tags
- Select posts that match multiple category names, must match all categories listed
- How can i display category title over thumbnail?
- Need help with major category and permalink re-organization
- Include home page template in specific category template
- How to add categories using mysql
- Posts made to category don’t show up (do show up on frontpage)
- How to use category slug with a regular page
- Display all categories but only if they have posts in them that have a specific tag assigned
- How to fix select filter on category
- wp_dropdown_categories() works correctly but the list is not filtered in admin for custom post type. What is the problem?
- Show audio player only in specific post type category
- Check with Jquery if second level checkbox from categories are checked
- Modifying category order
- display current portfolio categories from a specific parent
- Regarding Tags And Categories
- How to show entries related to main category
- selecting categories that have products with tag/category
- how to get only grandchild category from a child category
- How to get WooCommerce Product Categories and its children’s children?
- How to hook into creating a category?
- Media Library Category Exclude Tree
- When category name and title are the same … WP will select archive.php instead of single.php
- Re-coding category-template.php to go to custom URL
- Category removal – Portfolio Category:
- show posts in archive page based on selected catagory
- How to display child-category PAGES on a category page
- How get all media from a posts category by db?
- Cant get unique_array() work on get_the_category() foreach loop
- Get the categorie name of Event Organiser plugin [closed]
- Show One Level Category id
- get_categories returns top-level categories instead of child categories
- Show posts from all categories
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Display the category name of a post that is in two different categories
- how to Specifies an author / editor to edit one category only?
- (WordPress) How to get custom taxonomy parent name?
- Show one same template for two category
- My Query is getting the wrong data
- Formating content in category.php
- How to use Greek characters/letters in a query?
- Search functionality with multiple categories
- Make a menu visible for a single category and it’s content
- WordPress Loop Prob
- Display post content from category name using ajax
- WooCommerce category display in custom page
- How to display the category featured images [closed]
- Echo Category In Loop