Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 2,851 through 2,865 (of 3,707 total)
  • Author
    Posts
  • in reply to: Field Description #5118
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    I've just pushed a commit on Github to add supports for this. Please download the development version here: https://github.com/rilwis/meta-box (I will update the plugin a little bit later).

    Instead of "move" description under the label, you just need to add parameter label_description to the field and that's done.

    in reply to: Front End Forms #5117
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    This feature is not available yet in Meta Box. It's still being developed. We have some technical issues that relates with the core and need to fix it.

    I will let you know when it's available.

    in reply to: Define Metas for certain role (Contributor) #5116
    Anh TranAnh Tran
    Keymaster

    Hi,

    1. You need to put this code in the meta box parameters, for more info, please read this docs:

    https://metabox.io/docs/validation/

    2. The current version of Meta Box only supports validating fields when editing posts/pages. I've made and improvement to support user meta and term meta. That feature is available on Github: https://github.com/rilwis/meta-box. I will update the plugin a little bit later when we fix some other bugs.

    in reply to: Margin Issues #5100
    Anh TranAnh Tran
    Keymaster

    Hi,

    I've just checked the CSS of the rows and found that the CSS you're seeing is in the old version of the extension. Please update the extension to have that fixed.

    in reply to: Add filters to select array #5099
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think you can do like this in your plugin:

    $options = array(
        'ea' => 'Each',
        'hr' => 'Hourly',
        'day' => 'Daily',
        'wk' => 'Weekly',
        'mth' => 'Month',
        'yr' => 'Yearly',
    );
    $options = apply_filters( 'prefix_unit_options', $options );

    Then when registering meta boxes, just specify 'options' => $options.

    It might be a better idea to wrap the value of options to a function like:

    function prefix_get_unit_option() {
       $options = ...;
       return apply_filters( 'prefix_unit_options', $options );
    }

    And use 'options' => prefix_get_unit_option().

    This way you can make a repeatable field in your settings page and get the values, passing them to the prefix_get_unit_option() to build the array of options.

    function prefix_get_unit_option() {
       $options = ...; // Default options
       
       $settings = get_option( 'option_name' );
       if ( ! empty( $settings['unit_options'] ) ) {
           foreach ( $settings['unit_options'] as $value => $label ) {
               $options[$value] = $label;
           } 
       }
       return apply_filters( 'prefix_unit_options', $options );
    }
    in reply to: Metas for Attachment Post Type #5091
    Anh TranAnh Tran
    Keymaster

    Great link! Thanks for letting me know. I will check that.

    in reply to: MetaBox's not being found by Admin Columns Pro #5080
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    I've just tried the Admin Columns free version and it finds registered fields. What field types are you using? Because of different ways of storing data in the post meta, I think this plugin works only with the basic field types (such as text, wysiwyg, select, radio, etc.).

    in reply to: Fatal Error #5078
    Anh TranAnh Tran
    Keymaster

    Looks like a compatibility with PHP 5.2. I've updated the extension, please try again.

    in reply to: rwmb_meta_boxes filter #5072
    Anh TranAnh Tran
    Keymaster

    A simple solution is creating 2 meta boxes: 1 for your testtype where you use $content, 1 for the other post type.

    in reply to: Metas for Attachment Post Type #5071
    Anh TranAnh Tran
    Keymaster

    I've seen Jetpack plugin do that. Not sure if there's any solution in general for that.

    in reply to: Fatal Error #5070
    Anh TranAnh Tran
    Keymaster

    I couldn't replicate the issue. Here is my screencast:

    http://take.ms/VYsZ3Z

    in reply to: Define Metas for certain role (Contributor) #5069
    Anh TranAnh Tran
    Keymaster

    Just looked at the issue and found that WordPress doesn't validate the user edit form. So the required attribute doesn't work.

    You need to use Validation rules, like this:

    'validation' => array(
    	'rules'    => array(
    		$prefix . 'structure_name' => array(
    			'required'  => true,
    		),
    	),
    )

    However, this requires the latest development version on Github. I've just added support for user edit form and term edit form in the core.

    in reply to: Fatal Error #5067
    Anh TranAnh Tran
    Keymaster

    Hi, I couldn't replicate the bug. Can you post your code to register meta boxes?

    in reply to: Admin search meta key #5064
    Anh TranAnh Tran
    Keymaster

    The WordPress core doesn't support that. We need to create a custom code for that. I will update the plugin to support that soon.

    in reply to: Problems to get the Boxes run #5058
    Anh TranAnh Tran
    Keymaster

    Hi,

    A. Is my basic view of what Metabox can do right?

    The plugin only does the job of creating meta boxes and custom fields in the admin area. It doesn't handle the automatic showing the custom fields values in the frontend (because it depends on where you want to show them or how you want to use them).

    I think it's half of what you want.

    B. How do I get the customer fields visible in the frontend?

    Please follow this documentation: https://metabox.io/docs/get-meta-value/

    This was the text of the notice with the fatal error:

    Can you give me more details on the error?

Viewing 15 posts - 2,851 through 2,865 (of 3,707 total)