Question

I'm looking for a method/plugin/hack to auto-insert an outline when I start a new post in Wordpress. I've searched online for ideas as well as the WP Plugin repo with no luck.

Essentially, many of my posts have a similar structure, and it would be nice not to have to paste it each time, but to have it embedded in the body of the "Add New Post" page. Of course, it should be editable.

Was it helpful?

Solution

Your question is very similar to this question:

You might find the solution to be what you need; I extended my WP Boilerplate Shortcode plugin to meet the needs of the person asking the question; you might find the solution fits your needs as well.

OTHER TIPS

Create new page with your outline, save it as draft. I called it "Outline".

Then drop this in functions.php of your theme (can be packed as plugin if needed).

add_filter( 'default_content', 'default_post_outline' );

function default_post_outline( $post_content ) {

$page = get_page_by_title( 'Outline' );

if( isset( $page ) )
return $page->post_content;

return $post_content;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top