[wp-trac] [WordPress Trac] #45737: Starter Content: Add support for terms and taxonomies

WordPress Trac noreply at wordpress.org
Fri Dec 21 21:52:56 UTC 2018


#45737: Starter Content: Add support for terms and taxonomies
---------------------------+-----------------------------
 Reporter:  aaroncampbell  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Customize      |    Version:  5.0
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Starter content has been a great tool not only for themes to showcase what
 they can do, but for some interesting work around custom onboarding flows
 that reduce the difficulties of getting started for various groups of new
 users. As work around these things matures though, it's starting to push
 against the boundaries of what starter content currently supports.

 I'd like to see support added for terms. They could work similar to how
 nav menus, featured images, etc work, allowing terms to be added and a
 symbol referencing them to be added to the post.
 {{{#!php
 <?php
 [
     'posts' => [
         'blog-post' => [
             'post_type' => 'post',
             'post_title' => 'Blog post',
             'post_content' => 'Lorem ipsum',
             'term_ids' => [ '{{foo-category}}' ],
         ],
     ],
     'terms' => [
         'foo-category' => [
             'name' => 'Foo',
             'slug' => 'foo',
             'taxonomy' => 'category',
         ],
     ],
 ]
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45737>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list