New Metebox Fields

Introducing new Metebox fields: oEmbed, Pages, Categories and Users

At GenerateWP, we always improve our tools, with many ongoing updates under the hood, many of them based on your feedback. Like all digital products, there’s a process. We listen to your valuable feedback and improve our tools accordingly. Today we are exited to introduce new fields added to the Metabox Generator.

oEmbed: Embedding external content

Now you can create Metaboxes with auto-embed capabilities using the oEmbed protocol. This nifty feature will allow you to embed content from external services (like YouTube, Vimeo, Twitter and others). You will also be able to preview the video directly in your newly-created Metabox.

 

Metabox oEmbed Field
Metabox oEmbed Field

 

Post Video Metabox
Post Video Metabox

 

As always, we try to use core functions for ensuring backwards-compatibility with older WordPress versions, with minumum workarounds as possible. For this field type, we use wp_oembed_get(), introduced in WordPress 2.9.

Select Pages

Do you need to show a dynamically-created Select box/Dropdown to show your site’s pages in a Metabox? No problem. Use the “Pages” field and the generator will do the rest!

 

Metabox Pages Dropdown Field
Metabox Pages Dropdown Field

 

Page Dropdown Metabox Field
Page Dropdown Metabox Field

 

We use wp_dropdown_pages() to implement this field.

Select Categories

If you’d like to show a Select box with all the categories – just use the “Categories” field, and the new Metabox field will populate with the existing categories on your site!

 

Metabox Categories Dropdown Field
Metabox Categories Dropdown Field

 

Categories Dropdown Metabox Field
Categories Dropdown Metabox Field

 

We use wp_dropdown_categories() to implement this field.

Select Users

Same applies for users list. The “Users” field will create a dynamically-populated select box field with all your site’s users in a Metabox.

Metabox Users Dropdown Field
Metabox Users Dropdown Field

 

Users Dropdown Metabox Field
Users Dropdown Metabox Field

 

We use wp_dropdown_users() function to implement this field.

 


 

OK, that’s a wrap! Please let us know in the comments below what you think about our new fields, as well as ideas for other fields you’d like to see implemented in the future.

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on whatsapp
Share on email
Rami Yushuvaev

Rami Yushuvaev

I'm an entrepreneur, a web developer and a blogger. I’ve contributed code to each and every release since WordPress 2.8. I'm the Hebrew GTE responsible for the translation and the release of WordPress Hebrew version. The founder GenerateWP.com and several other WordPress related projects. I work mainly with Israeli startups and hi-tech companies, providing development services.

4 Comments:

Leave a Reply

Subscribe to our Blog

Receive email notifications when new blog posts are published.