[wp-trac] [WordPress Trac] #38114: Make it easier to visualize where to put your content in a given theme (aka "dummy content")

WordPress Trac noreply at wordpress.org
Tue Sep 27 20:37:17 UTC 2016


#38114: Make it easier to visualize where to put your content in a given theme (aka
"dummy content")
----------------------------+------------------
 Reporter:  helen           |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  4.7
Component:  Themes          |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------

Comment (by davidakennedy):

 I wanted to share some of the default demo content used on a project
 somewhat similar on WordPress.com. There are other parameters in here, but
 most of it is content, and very basic:

 {{{#!php
 <?php
 $content = [
         [
                 'post_title'     => 'About',
                 'post_content'   => 'This is an example of an about page.
 Unlike posts, pages are better suited for more timeless content that you
 want to be easily accessible, like your About or Contact information.
 Click the Edit link to make changes to this page or <a
 href="https://wordpress.com/page">add another page</a>.',
                 'post_excerpt'   => 'This is just a short excerpt for the
 about page.',
         ],
         [
                 'post_title'     => 'Contact',
                 'post_content'   => 'This is a contact page with some
 basic contact information and a contact form. [contact-form][contact-field
 label="Name" type="name" required="1"/][contact-field label="Email"
 type="email" required="1"/][contact-field label="Website" type="url
 "/][contact-field label="Comment" type="textarea" required="1"/][/contact-
 form]',
                 'post_excerpt'   => 'This is just a short excerpt for the
 contact page.',
         ],
         [
                 'post_title'     => 'First blog post',
                 'post_content'   => 'This is your very first post. Click
 the Edit link to modify or delete it, or <a
 href="https://wordpress.com/post">start a new post</a>. If you like, use
 this post to tell readers why you started this blog and what you plan to
 do with it.',
                 'post_excerpt'   => 'This is the excerpt for your very
 first post.',
         ],
 ];

 // From elsewhere in the code, but more content.

 return [
         [
                 'post_title'     => __( 'Home' ),
                 'post_content'   => __( 'Welcome to your new site!  You
 can edit this page by clicking on the Edit link.  For more information
 about customizing your site check out <a
 href="http://learn.wordpress.com/">http://learn.wordpress.com/</a>' ),
                 'post_excerpt'   => __( 'This is the home page\'s excerpt'
 ),
         ],
         [
                 'post_title'     => __( 'Blog' ),
                 'post_content'   => __( 'This is the page where users will
 find your site\'s blog' ),
                 'post_excerpt'   => __( 'This is just a short excerpt
 about your blog.' ),
         ],
 ];
 }}}

 Also, in terms of thinking of themes in types – as in each theme serves a
 primary use case, we at Automattic have created a new project that
 generates themes based on type right now:
 http://components.underscores.me/

 The five types are the majority of the kinds of themes we build for
 WordPress.com and may be useful for thinking of how dummy content may be
 different depending on a theme's purpose.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38114#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list