You can do this like this: (answering from mobile. Please forgive if the markup is broken)
add_filter( 'default_content', 'preloaded_editor_content', 10, 2 );
function preloaded_editor_content( $content, $post ) {
switch( $post->post_type ) {
case 'your_post_type':
$content="your content";
break;
default:
$content="your default content";
break;
}
return $content;
}
Related Posts:
- Assign Page Template Within A Custom Post Type
- Adding the_content() in custom template email
- Custom URL redirect in WP
- How to get the current category with custom posts
- Displaying posts inside table having issues
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- will post_id ever change? Can I safely use post_id for custom queries?
- List custom taxonomy specific to one custom post type
- Define new user capability for custom post types?
- How to allow visitors to enter custom post type?
- Is it possible to create relational metabox values in a custom post?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- Meta query for custom post type ignored in main query
- 2 Templates 1 custom post type according url
- How do I move/order posts with a tag to the end?
- changing meta value and meta key of price field
- WordPress sort search results by custom order
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Hide parent categories when clicked, and show it’s childs
- Custom Path/Folder behind a custom post type
- Time based access control of custom post types – what is good approach?
- Show titles, date of all posts on single category page
- delete_published_posts does not work
- redirect automatic page that serves custom posttype content
- How to start a new post with custom Taxonomies already set?
- Adding sidebar to template creates horizontal gap the size of the side bar
- WordPress showing archive.php instead page
- WooCommerce sort products by the actual product width(not the shipping width)
- How to render a custom post type template with custom fields using shortcode
- Create a custom php page and load it at a specific slug
- Structure of data : CPT + terms
- How to handle paged param in post and custom-post-type?
- Default text in a specific post type, but not visible?
- Update postmeta Parent when post_status child change
- WP_Query custom post type query not showing the exact post type
- Shortcode to display Staff post type based on Location post type and Specialty post type
- How to remove post listing page for a custom post type
- How to include term custom meta into the custom taxonomy term permalink structure
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- A form that can save/edit after first input
- Show Custom Post Type meta boxes only on Page Edit
- Creating a Page Template to display all items from a Custom Post Type
- Cannot save CPT meta box
- non-hierarchical post type with hierarchical url structure
- Filter widget outputs
- Why does my content disapear when I make a page to match an archive name?
- Send notification to the admin when new custom post is submitted
- How do i search authors from search form using author’s name
- Allow users to create posts without logging in?
- How to add attributes to taxonomies that may be different from post to post?
- Pages are not saving due to custom post type
- Custom Post Type Template Alternative
- Migrating a taxonomy’s tags to the native category
- General advice on addressing content-centric pages
- Fields for different parts of a page
- next_/previous_post_link() `in_same_category` appears to fail when true
- Multiple templates for single custom post type
- How to produce a sub-page-system in WordPress
- How do you create a custom template to display a category with an image and related posts below?
- Best structure / rewrite rules to achieve the following url
- WordPress Custom Search by post_type
- don’t publish custom post type post if a meta data field isn’t valid
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Pages Become “Archive” Instead of Using Page Template
- How to sort posts in a custom post type by title in ascending order by default?
- How can I set the page template of a new custom post type post?
- Categorise Custom Post Types
- Detect inside a custom query the kind of post type to assign custom classes
- Custom post type pages return 404 page?
- custom post type vs. conditionally displaying meta boxes for specific terms?
- Multiple single templates?
- Edit the_content() function so to add a div wrapper
- How do you make a custom post type items automatically delete items 3 months after publication?
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- Number of posts in the archive
- custom post data – how to
- Ordering Submenu Pages in WP 3.1
- 404 Error on form submission within custom post type
- Remove Quick edit for custom post type?
- WordPress Picks Up Wrong Template for Custom Post Type Archive Page
- Replace dynamically content in a custom database table when a custom post is created
- Associate page w/ specific single post template?
- How to customize work area / admin area in a custom post type without plugins?
- How can I have different content for different countries?
- Change “empty trash” button text?
- How to display custom field value on page?
- Include php on a specific page template
- get comments by current user inside page template
- Move Genesis Single Page/Single Post Title
- Add an Outside Wrapper to my Header and Make it Full Width
- page template for custom post type
- Page Template Dropdown For Custom Post Types
- List Categories (wp_terms) and count posts
- attach CPT data to a taxonomy
- Displaying multiple post types on home page
- Get_the_terms restrict output
- Conflict between wp_list_pages and get_posts – list pages not displaying
- Custom post type menu
- How to insert data into meta box from another plugin?