Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,346 through 3,360 (of 3,708 total)
  • Author
    Posts
  • in reply to: WYSIWYG rich-text has no Heading support #2677
    Anh TranAnh Tran
    Keymaster

    By default, the wysiwyg has everything the default editor has. You need to click to the "Toolbar Toggle" button to show the format selection dropdown, like this:

    http://prntscr.com/aoqf1k

    Anh TranAnh Tran
    Keymaster

    Can you just try including the plugin's file directly without putting it inside the 'init' hook?

    in reply to: I would like to download MB admin columns #2668
    Anh TranAnh Tran
    Keymaster

    I don't think so :(. You purchased the bundle on Sep 30 last year. Since then, 3 premium extensions were added to the bundle (Settings Page, Term Meta and Admin Columns). The price at that time was $79 only.

    in reply to: Tabs not shown #2665
    Anh TranAnh Tran
    Keymaster

    I've just tested again and it works. A stupid question, but can you post your code again?

    in reply to: Use repeatable Meta Box field for query orderby #2664
    Anh TranAnh Tran
    Keymaster

    That's the only way I can come up with. I think the solution is quite good for now ๐Ÿ˜‰

    in reply to: Use repeatable Meta Box field for query orderby #2661
    Anh TranAnh Tran
    Keymaster

    Hi,

    I'm afraid we couldn't make it work simply by modifying query arguments. Since the values are stored in a serialized array in the database, the sorting simply can't work.

    I suggest a hack for this: when saving the event times (array), save the first value into another custom field and use that new field for sorting.

    Here is a sample code, you should adapt it to your situation:

    add_action( 'rwmb_{META_BOX_ID}_after_save_post', 'prefix_add_event_start' );
    function prefix_add_event_start( $post_id ) {
        $times = get_post_meta( $post_id, 'event_start', true );
        if ( !empty( $times ) && is_array( $times ) ) {
            $start = reset( $times );
            update_post_meta( $post_id, 'event_start_first', $start );
        }
    }

    And then modify the query arguments by:

    'meta_key' => 'event_start_first',
    'orderby' => 'meta_value',
    'order' => 'ASC',
    in reply to: rwmb_the_value() #2657
    Anh TranAnh Tran
    Keymaster

    Just found the bug and pushed a fix on Github. Can you please test that?

    in reply to: Validation does not work with tabs #2656
    Anh TranAnh Tran
    Keymaster

    Sorry, I almost forgot to track this question. I've just pushed a fix for this on Github. The problem is the jQuery validation plugin doesn't work for hidden elements by default.

    in reply to: Tabs not shown #2654
    Anh TranAnh Tran
    Keymaster

    Are you using the latest version of the extension? This feature has just been added in version 1.1.0.

    in reply to: rwmb_the_value() #2653
    Anh TranAnh Tran
    Keymaster

    Maybe you're right. I need to check that again. Can you tell me which field type are you using?

    in reply to: rwmb_the_value() #2641
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for asking this. There are 2 internal helper functions rwmb_get_value() and rwmb_the_value() which are used in rwmb_meta() function. They're not 100% stable since v4.8.0 so I haven't put them in the docs yet.

    Briefly, rwmb_get_value returns the raw value stored in the post meta, while rwmb_the_value returns (or outputs) the *meaningful* value in the frontend. Meaningful = option label for select box, post title for post field, a colorful dot for color field, etc.

    Both functions accept the same parameters as rwmb_meta. Parameters also share the same meaning.

    rwmb_get_value( $field_id, $args = array(), $post_id = null )
    rwmb_the_value( $field_id, $args = array(), $post_id = null, $echo = true )

    They also use $post_id if you want to get meta value from a specific post.

    In your case if the result goes unexpected, please try setting up the $post_id. Anyway, there was also a topic reporting the same problem happened because of wrong post ID. But I couldn't find out why

    in reply to: Meta Box extension updates and MainWP #2640
    Anh TranAnh Tran
    Keymaster

    Are you using the latest version of the Updater? I think I fixed that.

    Anh TranAnh Tran
    Keymaster

    Hi,

    I think you're doing correctly. However, I will think more about a better way to suppress the error. For now, all fields' classes are loaded by autoload and it makes us impossible to use class_exists.

    Anh TranAnh Tran
    Keymaster

    Unfortunately, it's not supported. The plugin is made for working with custom fields and should handle custom columns for custom field only. For the default WP columns, I made it support replacing them only.

    However, you can do that with a simple code like this:

    add_filter('manage_edit-POST_TYPE_columns', 'prefix_custom_columns');
    function prefix_custom_columns( $columns ) {
        $columns['title'] = __( 'Lecture Name', 'textdomain' );
        return $columns;
    }

    For more details, you can check this tutorial.

    in reply to: I would like to download MB admin columns #2630
    Anh TranAnh Tran
    Keymaster

    Hi buzzmn,

    The reason you don't see the new extensions in the download bundle is at the time your purchased the bundle with a lower price, the extensions have not been published. When new extensions are added to the bundle, the price increase. So you purchased for the current extensions at that moment. The new bundle requires higher price. Please understand that the bundle doesn't guarantee all current and future extensions. It has current extensions with a corresponding price.

Viewing 15 posts - 3,346 through 3,360 (of 3,708 total)