Gutenberg: Update Block: Latest Posts CPT

Created on 15 Aug 2018  路  9Comments  路  Source: WordPress/gutenberg

I would love the "Latest Posts"-Block to have a drop down for choosing either the regular posts or if one or several custom post type are enabled the opportunity to choose on of them.

  • add a select drop down when one or more custom post types are anabled

post

[Block] Latest Posts [Feature] Blocks [Type] Enhancement

Most helpful comment

Here's a first working commit.

And as @draganescu mentioned at #20046 I should move it to the QueryControls!

ezgif-3-cbf4b52b789c

All 9 comments

Related to #1594

Addition: In order to fully reflect a custom information architecture, the drop down 'Category' has be be replaced/completed with the taxonomies registered for the selected custom post type.

Right; be better to switch "Category" and "Post type" aswell then :-)

When this gets added, the default selected post type should be the current post type...

i.e. - User is creating a new Movie item, dropdown should default to movies CPT, user is editing a Comic Book, dropdown should default to comic_books.

+1 Using this for Articles post type which exactly works the same as the regular post type.

Also related to the Archive block.

@Ringish started some exploration on this issue.

Here's a first working commit.

And as @draganescu mentioned at #20046 I should move it to the QueryControls!

ezgif-3-cbf4b52b789c

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Pikkals picture Pikkals  路  98Comments

jasmussen picture jasmussen  路  173Comments

jasmussen picture jasmussen  路  74Comments

afercia picture afercia  路  73Comments

smp303 picture smp303  路  98Comments