Hey guys,
I'm trying to implement a custom title for my custom post types. Its for a versioning system for an application. I only want to insert the version number in the title of my custom post type and let wordpress automatically save the titles as "Application updated to version <titlethatwastyped>"
There is this snippet of code:
<?php
add_filter('the_title', the_new_title);
function the_new_title($title) {
return 'Application updated to version '.$title;
}
?>
But this converts the title for ALL posts. I only want it to convert the titles of the posts made under the custom post type that has a unique identifier 'app_version'. How do I do this? Its driving me nuts.