wp-api-menus icon indicating copy to clipboard operation
wp-api-menus copied to clipboard

Add post thumbnail support for v2.

Open samdotme opened this issue 8 years ago • 2 comments

Allowing users to get access to featured images in posts is a simple two line change. This will simply return an empty string for those posts/themes which do not have/support a featured image.

samdotme avatar Nov 15 '16 13:11 samdotme

I don't understand the reason behind this. The plugin just adds endpoints for menus. Can you explain?

mckernanin avatar Nov 16 '16 03:11 mckernanin

@mckernanin The use case for this would be someone building a modern, tiled menu layout. An example of doing this with posts or categories would be https://wordpress.org/plugins/wp-tiles/.

Exposing the featured image from the menu endpoint would allow a theme designer to get the same effect using a menu, which has the benefits of your tiles not having to change with every new post.

samdotme avatar Nov 16 '16 12:11 samdotme