If I follow what you’re explaining correctly, try adding a document title filter to the functions.php theme file. (NB: setting to only change post and pages. Search, Archive, etc, will keep original title. You can always modify accordingly.)
*** EDIT: added a filter for older themes that uses wp_title.
add_filter('wp_title', set_custom_page_title, 99999); //NB:backward compatibility with wp_title() theme function
add_filter('pre_get_document_title', set_custom_page_title, 99999);
function set_custom_page_title($orig_title) {
if(is_page() || is_single()){
return get_the_title();
}
return $orig_title;
}
Related Posts:
- If post has custom field then display css-class
- How can I add dropdown widget/box to admin post page?
- Include images from pages in wp search.php results in default wp search
- List events by month
- Limit Authors to their Own Posts on front-end excluding admins
- How to append element after thumbnail
- I am having a problem with form updating/editing WordPress post on the frontend
- WP_Query is printing out only one post when posts_per_page is set to multiple
- GravityForm: Populate Dropdown with custom post type [closed]
- Blog page showing same content as homepage
- Can’t get order_by meta_value_num to work properly
- Accessing post’s meta data based on user’s click of a post
- Replace text in post from cvs
- I would like to have different styles for my posts based on the content of each post
- Make a custom_post translatable
- Redirect to another page using contact form 7? [closed]
- How to delete all trashed item in one-go
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Pagination hitting 404 page on /page/4
- Filter content in shortcode
- Modify Posts from Custom_Post_Type within the plugin
- How to add new post using a form to categories when categories are using as menu
- How to set the mainpage of a custom post type?
- Different post title, keywords and description
- Validate Custom Post Type fields
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Accessing a protected property of a post
- redirect after submiting post for review
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Is it possible to get the specific content on the search page?
- Why is my custom post content only viewable when signed into WordPress?
- How to change Elementor Template for Single Page Post on Load
- open custom post type in popup window instead of page
- WordPress hide post from custom post-type on a single page
- WordPress – display relationship between blog posts and custom posts
- wp_post_delete is deleting all offices
- Accessing download link from the loop with WP Download Manager Pro
- Set a template on a custom post in the plugin
- Filter Custom Post Type Posts by Taxonomy
- Add input radio menu to post
- News post with multiple permalinks? When opened from different page
- Custom Post By Category
- How to get the posts that my following users are liked?
- Include images from pages in wp search.php results in default wp search
- Post that populates itself (almost) automatically using data from imported excel file
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- WP_Query return highest number only
- Show custom taxonomy not in submenu
- Featured image in custom post is being disabled
- Loop carousel slider in wordpress
- How to Fix WordPress 500 Internal server error due to custom post type
- Why isn’t my custom post type using the corresponding custom post template?
- How to delete unnecessary custom post types in the UI
- Change Custom Post Type to Post + Category
- CPT post doesnt shows tags and category on backend admin page
- Link two different post using there post_id in post meta
- Duplicate posts in my custom loop
- Event Manager: Events Deleted are still in DB as published but hidden in admin
- How can i order my posts by post type?
- ACF Post Content Not Being Searched
- Rewrite url post_tag for custom post type
- Setting up a page to house certain types of posts
- When post is Published, insert into custom table a number – custom post type
- How to get all posts related to a taxonomy?
- Custom post type that lets users create a set of posts?
- Display related post content and custom field content
- The most recent post of custom taxonomy
- Custom 404 redirect for a luddite
- How to make sure, that only the selected post is changing?
- call a function when insert and update a custom post type
- Multiple Custom Post Type with different Taxonomies
- Create Inclusions and exclusions
- Creating custom post type relationships
- WP_posts (Not meta) extra custom field column show and change it in a custom post type
- How to create groups like that in buddypress?
- how to make custom post with “publish” default functionality not save in draft?
- update a posts of other custom post type
- Links Image in “Catalog” Page to Posts
- How to mark posts as visited
- Show tags of custom post types in WordPress
- I broke it! Custom post type archive gets redirected to home
- Work and Display a Custom Post Type as a normal Post
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Get post from Category by Priority
- Most efficient way of showing children posts?
- How to create a discussion post when a custom post is created?
- Custom Fields through plugin in a Custom Post Type
- Single Post (CPT) in two pages – Normal and Extended
- creating a custom post template
- WordPress loop add heading before first of type
- Group/list/sort custom post type posts by date in tabs from acf datepicker field
- Can’t save custom post type fields
- Enable shortcodes on custom post type
- Only show current category post
- WordPress Contents Migration
- Limit or filter edit view in the dashboard to a specific ID only?
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- Filter By Term Not Working – Custom Post Type