WP Manifestindependent plugin directory
manifest / admin / wpupostmetas

WPU Post Metas

Simple admin for post metas

★ 3stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wordpressutilities/wpupostmetas/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Post Metas

Adds custom fields to the post administration.

How to install :

  • Put this folder to your wp-content/plugins/ folder.
  • Activate the plugin in "Plugins" admin section.

How to add boxes :

Put the code below in your theme's functions.php file. Add new boxes to your convenance.

add_filter( 'wputh_post_metas_boxes', 'set_wputh_post_metas_boxes', 10, 3 );
function set_wputh_post_metas_boxes( $boxes ) {
    $boxes['box_address'] = array(
        'name' => 'Box name',
        'post_type' => array( 'post', 'page' )
    );
    return $boxes;
}

How to add fields :

Put the code below in your theme's functions.php file. Add new fields to your convenance.

add_filter( 'wputh_post_metas_fields', 'set_wputh_post_metas_fields', 10, 3 );
function set_wputh_post_metas_fields( $fields ) {
    $fields['wputh_post_address'] = array(
        'box' => 'box_address',
        'name' => 'Address',
    );
    return $fields;
}

Thanks