You can use ‘the_title’ filter (Codex link)
add_filter( 'the_title', 'lose_four_chars');
function lose_four_chars($title) {
if ( is_single()) {
return substr($title, 4);
} else {
return $title;
}
}
Related Posts:
- Post titles and thumbnails as links to custom post types?
- Change modified date to current date when title updated automatically
- Please I want to prefix my WP posts title according to each category
- My posts page is missing the page title
- Hiding title of selected post without plugins
- Custom Post Title as search term
- How remove “recent comments” title without modifying code? [closed]
- Where does WordPress store the users customization in the theme
- Add a checkbox to post screen that adds a class to the title
- Attach pdf file to custom post type
- Static posts page with home.php
- How to show posts rank based on custom field value
- Delete Post Link to delete post, its meta and attachments
- Add custom field to category of custom post type
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Add custom fields to post programmatically
- How to intercept Post Title on Post-Save
- user contributed content as custom post types
- Remove custom posts that match taxonomy value
- Custom Theme Want To Remove One Category From All Displays
- How Can i Get 5 Recent Post Title With Corresponding Link?
- Filter Posts By Tag
- Post Type Label Name
- wp_query ‘s’ parameter does not work with custom post type
- Blog Posts in Custom Menu
- How to display data in archive page?
- Set terms in a custom post
- Move first half of posts to one parent page, second half to the other page
- Custom Post Type – Category Rewrite – Remove Rewrite from Sitemap
- CPT archive redirects to single post
- Prevent Delete Attachment by URL or When Submit
- Enable Comments Box On Custom Post Type
- Turn On Comments On Custom Post Types in Directory Theme
- Responsive images with custom image size
- Duplicate Custom Post Type and Taxonomy Slug
- Take a received feedback item, turn it into a post
- Calling Different Custom Post Timestamps in a table
- Admin – create custom post status and display above table
- How to allow visitors to filter posts by multiple taxonomies
- How do I change the core post search algorithm? Where is it found/constructed?
- How to include my own css in post
- Add title for previous and next posts to Yoko Theme
- a little direction on custom post type
- How to get links to the last N posts in a specific category?
- How safe is it to delete old posts edits to save database space?
- Is codex right on deleting post?
- How do I include the category next to the title of a post?
- Create a custom posts page
- Replace image name on upload to the new post name on front-end form
- Why in my query is display two title?
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- register_post_type permalink
- Custom Post Limit for homepage only without plugin?
- Auto update post title and slug when post status is changed
- Static pages not working
- Get a term each custom post type
- Adding a custom post type meta field to rss
- Help with listing current users submitted custom post type in template file
- Deleting old posts
- How To Use Custom Tax of a Post Type
- Help on conditional statement to accompany wp_insert_post function please?
- Changing The Default Header POST Title and Description text by category in wordpress
- get posts, run a custom query, and join the results
- search form for custom fields
- Search results for ACF data
- Some custom post types did not return an object
- Display Post from Custom Post Type with Shortcode
- Redirect to custom post if custom archive page has just one result?
- Modified core/image rendering not showing in posts – only on pages
- Not display an image of category of custom post
- Show post count in custom taxonomy page
- Post relationships/nesting
- Is it possible to make a custom post that adds multiple pages?
- Displaying dynamic content (blog posts/portfolio) on a static homepage and keep the blog post styles
- Multiple Custom Post Type loop logic
- WordPress search for specific Post Type
- How can you control what a user is allowed to post in the backend?
- How can I choose and change a post title at random from an array when it is published?
- How to show content of specific item on the same page?
- Custom URL Structure for posts with subcategories
- How to show the posts list into a static page? Problems to use the loop into a static page
- 404 for some custom taxonomy not ALL taxonomy
- Get post title by Alphabet
- Add default content to post (for specific category)
- WordPress strips some attributes for author posts
- First Custom Post Custom Fields Empty After New Custom Post
- Display one post randomly from category on home page
- How to have more post in a page than in your home page
- How do I show the post title if an advanced custom field hasn’t been used?
- Deleling wordpress posts permanently still have IDs
- clicking on page title
- Post’s arent displaying
- Can I get custom post items in select box (dropdown)
- How to have 2 posting pages on a blog
- Title displaying multiple times
- Custom Post-Rename Function Does Not Function in WordPress 6.x
- How do I get content of custom post type through post ID
- How to change Post title background size?
- WordPress Custom Post type csv exporter
- Edit Page button is gone