There is no way to do this using no code. Title is property of post object, so it doesn’t depend on the category the post belongs to. You can try to change the title using the_title
filter.
function change_title_based_on_category( $title, $post_id = null ) {
if ( in_category('some_category', $post_id ) ) {
return 'My changed title';
}
return $title;
}
add_filter( 'the_title', 'change_title_based_on_category', 10, 2 );
Of course it’s only a starting point. You can create some meta boxes to input additional titles in post editor and build some more advanced logic to change them according to category.
Related Posts:
- Change Posts per page count
- Random sort within an already sorted query
- Can I force a metabox to be in one column?
- Search by Hyphen
- Display the latest post from a category in a page
- rewind_posts() – what actually the use of it, and where using is required or preferred?
- Custom Field in Featured image for A particular post
- Post publish only hook?
- Restrict access to post if it is currently being edited
- Query only Posts from Both of Two Category?
- How to add one time a new page?
- wp_update_term is always launched after wp_insert_term
- Exclude posts with specific meta_value while sorting by a separate meta_value
- Problem ordering posts with numbers for titles numerically E.g. 1, 10, 100
- why does HTML Tag not working in Post and Page
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- Undefined variable post_id in custom quick edit coloumn
- Post preview and oembed provider issue using polylang plugin with subdomains
- Posts are being redirected to xampp home page
- How would I get 1 latest post from a query for 5 posts?
- How can I link a CSS file only on single posts?
- add_action not using ‘delete_post’ action with wp_delete_post
- Getting post id from wp_insert_post_data function?
- How can I create custom button in post.php
- Exclude posts with empty post_content in wp_query
- Exclude posts from featuring
- Lazy Load using WP_Query pagination
- Diplay comment date on WP_Post_Comments_List_Table
- Enable post revisions for a specific post
- Is there any way to allow users to access content before it’s published?
- Can I lock a post in position, so it always appears on the homepage?
- Custom post preview without saving
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- get_the_excerpt() is not working as expected – returns wrong text
- Category Page Template not Showing Posts
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Select only post id and meta value with WP_Query
- Recent posts and first featured
- sql select for post_title and a term name
- Cannot retrieve a custom RSS field from posts
- How to get a post’s details by shortcode?
- Get the amount of posts on a current page
- update image path with words starting uppercase to lowercase chars
- Posts on a Page using functions.php
- Make insterted image point to post url instead of attachment page
- WordPress bulk category select when publishing post
- Getting featured image with PHP and not javascript from wordpress api _embed [closed]
- Why is my custom template not showing anything?
- How to populate a select field with post titles/ids in a block
- Move posts from a non-wordpress site to wordpress
- $_GET parametters not working in an specific template
- How to add html code at the bottom of the post in archive page?
- the_content() Not Grabbing All Content
- Can’t update WordPress Page if post_content is Empty
- How to get all inline images in post content? [duplicate]
- What function publishes a post when you click the publish button?
- In what context should Categories and Tags be used
- Display a post via template
- Email notification of new post includes code
- Have h2 tag not show up if there are no blog posts
- Link post images to post
- How to add a post class on every post. (on homepage)
- Problems with WordPress in subfolder, posts show a blank page
- Rewriting blog permalinks
- How to exclude native lazy loading from first image in post content?
- Count the total views of all user posts published
- Why is it recommended to insert JS through the theme, plugin, etc rather than in the post directly?
- Why sorting posts doesn’t work properly?
- How can I create a shortcode to show the number of posts of actual day?
- WordPress 5: prevent link from displaying page title instead of URL
- Post title links appear to be broken
- the wp_post_update isn’t working all the time
- I want to add the 10 most recent posts under a parent category on the main menu
- Is update_post_meta used when save_post action hook is invoked?
- Post title not displaying as recorded in the wp_posts table
- Customizing a new page used for blog posts with Avada theme
- How to increase the number posts that displays by a hierarchical taxonomy? (HTTP ERROR 500)
- WordPress weird behaviour on comments
- WordPress the_category(); only works with message-posts not with project posts, how do I specify project categories?
- post is not showing more than 3949 words
- Word /blog/ in slug post, problems in CPT. Solutions?
- How to add post under particular pages? Like website.com/page1/post1
- Repeating post how to solve this
- Showing content from WordPress ruins page CSS using WP_Query, without, content does not show
- Posts Not Paginating
- Tags not appearing in “Add New Post” Page
- Set the limit to allow author when make post!
- Assign certain editors to certain posts
- Creating pages and getting their values from the database table
- Older entries link within a category page
- Custom Post Title as search term
- Read more link not working [closed]
- $attachment->post_title not displaying title
- What does WordPress mean by they have full rights to content [closed]
- Adding a post to a page
- How to get only post=’product’
- unable to select “fullwidth” on the POST (not page)
- Cannot Create a new Post [closed]
- Sort Posts Alphabetically Based on Specific Category (Divi)
- Inserting Media on New Post But Hides Previous Uploads for Editor/Contributor