Created
January 20, 2017 15:03
-
-
Save websupporter/d1c01d0635607cd67cb5feb1dbcee597 to your computer and use it in GitHub Desktop.
For my blogpost http://websupporter.net/blog/de/starter-content-fuer-themes/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_theme_support( 'starter-content', array( | |
'attachments' => array( | |
'featured-image-logo' => array( | |
'post_title' => 'Featured Logo', | |
'post_content' => 'Attachment Description', | |
'post_excerpt' => 'Attachment Caption', | |
'file' => 'assets/images/featured-logo.jpg', | |
), | |
), | |
'posts' => array( | |
'about' => array( | |
// Use the above featured image with the predefined about page | |
'thumbnail' => '{{featured-image-logo}}', | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment