Tag Info

Hot answers tagged

3

Custom fields are perfectly suited for this purpose. WP Ref. IF the metabox titled Custom Fields is not visible on your post edit screen, you may need to enable the view with the Screen Options menu at the top right of your editor. For each post, simply create the secondary title and assign it a value. Where you would like this information to display, ...


1

If you're on a page by default The Loop will only run once so why not wrap your title and content in a container where you can have post_class() available? Start your loop at the top and end it before you get to your footer (or where ever you need to end it). If you are on a blog format and are running the loop multiple times, you'll need to be in the loop ...


1

Your example code could easily be converted to an array, like this: Updated and improved code for your new example: function manipulate_post_title( $title, $post_id ) { $title_array = array( '1153' => $title . '-suffix', '2' => 'prefix-' . $title, '3' => 'completely different title', ); if ( is_single() ...



Only top voted, non community-wiki answers of a minimum length are eligible