Podcast E159 – How & why to customize your Post Title & Post Content areas

Play

This week I share how and why to customize your Post Title and Post content area

Upcoming Events

Segment 1: In the News

  • Clef to shut down.
  • A2 Hosting now auto installing SSL and PHP 7

Segment 2:  This week I share how and why to customize your Post Title and Post content area.

Code to change Temp Title Text 

/*Changing title content to post */
function kswp_change_title_text( $title ){
$screen = get_current_screen();
if ( ‘post' == $screen->post_type ) {
$title = ‘Enter Property Address Here';
}
return $title;
}
add_filter( ‘enter_title_here', ‘kswp_change_title_text' );

Code to add preset content to post area:

/*Add default content to post */

function kswp_editor_content( $content )
{$content = “KSWP Real Estate is leasing a,”;
return $content;
}
add_filter( ‘default_content', ‘kswp_editor_content' );

Segment 3: Tool of the Week

comments powered by Disqus
“WordCamp