9 thoughts on “Custom Metadata

  1. I found this plugin is very useful, except one thing, how can i use multiple text input with fieldCustomList1_display function, instead of just one textbox

    hope to receive your answer

  2. Hi,
    I am quite a newbie. I installed the plugin. I added to “function.php” in my theme the line x_add_metadata_field( ‘Numero’, ‘post’ );

    And tried to write a post , hoping to see a new box titled “number” somewhere on the screen.

    But I see nothing.

    HAve I understood the purpose of the plugin ? What do I get wrong ?

  3. Big thanks for a really good plugin. There’s not that much pure developer oriented plugins out there and your Custom Metadata is very helpful. I hope you will follow your to-do list because additional field types and custom validation will be essential! Keep great work! :)

  4. Hi, there. I am using your plugin and it’s very usefull. But I have a bit headache finding a solution for a particular case. I added a custom “textarea” field to my users where I enable tinymce. It work well but the field is sanitized and i got all and removed. Do you think it would be possible to introduce an option to disable sanitizing for a give field (when adding it with x_add_metadata_field)

    or could i use a hook to do it ? (I am not really familiar with hooks yet)

    thx

    • Well sorry for disturbing i found a solution with sanitize_callback just strangely all are replaced before the sanitize_callback. i am investigation

  5. where the hell can i view the fields? i dont see them anywhere. i entered this code into functions.php but dont see anything in my wordpress dashboard or in users.

    /*————————————————*/
    /*—————–[CUSTOM-USER-META-DATA]————————*/
    /*————————————————*/
    $args_x_user_twitter = array(
    ‘group’ => ‘x_social_group’ // The slug of group the field should be added to. This needs to be registered with x_add_metadata_group first.
    , ‘field_type’ => ‘text’ // The type of field; possible values: text, checkbox, radio, select
    , ‘label’ => ‘Twitter’ // Label for the field
    , ‘description’ => ‘Twitter link’ // Description of the field, displayed below the input
    );

    $args_x_user_facebook = array(
    ‘group’ => ‘x_social_group’ // The slug of group the field should be added to. This needs to be registered with x_add_metadata_group first.
    , ‘field_type’ => ‘text’ // The type of field; possible values: text, checkbox, radio, select
    , ‘label’ => ‘Facebook’ // Label for the field
    , ‘description’ => ‘Facebook link’ // Description of the field, displayed below the input
    );

    add_action( ‘admin_init’, ‘my_theme_init_custom_fields’ );

    function my_theme_ainit_custom_fields() {
    if( function_exists( ‘x_add_metadata_field’ ) && function_exists( ‘x_add_metadata_group’ ) ) {
    x_add_metadata_group( ‘x_social_group’, ‘user’, array( ‘label’ => ‘User Social Group’));
    x_add_metadata_field( ‘x_user_twitter’, ‘user’, $args_x_user_twitter );
    x_add_metadata_field( ‘x_user_facebook’, ‘user’, $args_x_user_facebook );
    }
    }

  6. Like your plugin very much. Not sure I understand what Multiplied fields are and how to take advantage of them in your latest update. If you have time please explain. Thanks

Leave a Reply