
#Hide media meta fields from users wordpress code
In order to do that, we need to add the following code to the functions. Let's try adding a field for showing user's birthday. In order to add our own fields, we'd be using edit_user_profile and show_user_profile hooks, which are called right before outputting the 'Update' button on the user page (or on your own profile page). doaction ( blockeditormetaboxhiddenfields, WPPost post ) Adds hidden input fields to the meta box save form. You can also sort products by custom meta fields using the code below (in this example we order.

It includes two stages, first we need to output the custom fields, and then save their values to the database. Shortcodes can be used on pages and posts in WordPress. The second way of adding user information would be more flexible, but also more complex. You can enter the custom field data using key/value pairs. I ahve it working, but I'd like to make the custom field key a hidden one. This will make a new dialog box appear below the content editor. I'm trying to add a custom field to the media uploader in WordPress. Locate the Screen Options button on the right corner of your screen, and check the Custom Fields box. To enable this feature, access your page or post editor. There is no need for any more editing of the files of your theme or plugins for to add custom meta tags. Using 'edit_user_profile' and 'show_user_profile' hooks By default, the custom fields option is hidden in WordPress. Advanced search: filter media items by just typing the first letters of its name in the search field.

In order to display the saved data on the front-end, use the function get_the_author_meta, for example if you'd like to display the FaceBook profile link, use Additional comfort and even more convenient way to organize WordPress media library: User-friendly dynamic galleries / playlists: all options set with dropdowns and checkboxes, no coding.
