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
- How to get post content by calling ajax?
- Get category id from post id of a custom post type
- echo value from ‘select’ field type into page template using cmb2?
- Limit widget to a specific registered sidebar
- WP_List_Table Inside Metabox Not Working on Submit
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Display “Post 2 of 4” on single post page?
- Query post types with multiple keys
- Remove Post Page “View Post” Link
- Custom Post Type causes Page Not Found
- How to make post sticky in the admin page?
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Which post does a taxonomy term belongs to?
- Add custom field to Posts and sort by it
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- WordPress randomly shows 404 errors
- How can I move (or create another) publish button?
- Category.php template for custom posts
- help
- How to Display Posts From Category Within a Custom Taxonomy?
- Check IF single OR multiple custom data has been entered
- Is there a way to create two template for single custom post type page?
- Published post auto change status to pending after 90 days
- How to retrieve all wordpress posts (specific type) inside a function in php?
- Get posts from Custom Taxonomy
- Automatically update slug with latest title within custom post type [duplicate]
- Modifying the default post from wordpress
- I’m trying to create a custom version of the wp_list_authors function that includes custom post types
- Plain links in single-class.php and archive-class.php not working
- how can i show a google map in custom post type
- How to get post count of specific taxonomy that have store name & category
- Action on Custom Post publish
- Post template not applying on theme (potentially rendering as Page template)
- Why it doesn’t create a custom post type after form submitting
- $_POST from a Meta Box
- Using WordPress custom post type to display StoryMapJS
- Stored meta from attachment, video length?
- How to create a discussion post when a custom post is created?
- Can’t pick up a field created with Advanced Custom Fields
- Hook only specific post type
- Custom Post Type permalink not working on new posts
- Turn post into simple slideshow
- How to loose the image ‘alt’ attribute in my custom post type?
- Query multiple post of which one by taxonomy
- Cannot exclude particular post from loop of custom post type