Auto Generate Post Title from 2 Custom Fields

You can use the wordpress save_post action to update the title using the custom fields as you like. Here is the simple example I have used myself – add_action( ‘save_post’, ‘custom_post_type_title’ ); function custom_post_type_title ( $post_id ) { global $wpdb; if ( get_post_type( $post_id ) == ‘job-updates’) { $terms = get_field(‘job’, $post_id); // taxonomy fields … Read more

Add string to page title if post in specific category

If you meant the title in the title tag as in <title>here</title> on single post pages, then you might want to use the single_post_title filter to prepend the string in question to the page title. E.g. add_filter( ‘single_post_title’, ‘recipe_single_post_title’, 10, 2 ); function recipe_single_post_title( $title, $post ) { if ( in_category( ‘recipes’, $post ) ) … Read more

Hide a page title in WordPress 3.0

The video you have linked to is meant for the users of the Headway Themes. There is no option within WordPress itself to hide the title of pages. The video itself also does not show you how to hide the actual title, the option referred to is actually to hide the page from your navigation. … Read more

permalinks on title tag

There is no way to cause your permalink structure to be reflected automatically in the title tag. Instead, you must create it yourself. This might get you started: (I had to make a lot of assumptions in this code.) function my_title() { $post = get_queried_object(); $locations = wp_get_object_terms( $post->ID, ‘location’ ); $mba_courses = wp_get_object_terms( $post->ID, … Read more