Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 31 total)
  • Author
    Posts
  • in reply to: WYSWIYG field and Shortcodes #13972
    yumikomyumikom
    Participant

    Hi Anh,

    Is there filter which execute 'do_shortcode' for all metabox?
    For example like filters for widgets.
    add_filter('widget_text', 'do_shortcode' );

    Best regards.

    in reply to: How to add hidden field. #7406
    yumikomyumikom
    Participant

    Dear Tan,

    I tried ver.2.2.3, it's works fine!
    Thanks.

    in reply to: How to add array for post_type of post field #7339
    yumikomyumikom
    Participant

    Hi,

    This is the document I wanted to know.
    Thank you very much.

    in reply to: How to add array for post_type of post field #7292
    yumikomyumikom
    Participant

    Hi,

    Thanks for your advices.

    I'm fixed. All post types seleced of post field option post_type = 'any'.
    As expected, I'd like to select some post type set to post_type with array.
    But builder post_type option select box only one post type.
    Custom Attributes no accepts array

    'query_args' => array (
        'post_type' => array('page', 'test-custom-post-type-name'),
    ),

    I'd like to use array in post_type value with MB Builder post field setting.

    in reply to: How to multi dates picker field #7240
    yumikomyumikom
    Participant

    Thank you very much, Tran. I'll try this JS library and custom field type.

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #7019
    yumikomyumikom
    Participant

    Hi,

    I downloaded and tested taxonomy-advanced.php.
    It's works fine! rwmb_meta() use with taxonomy_advanced and return WP_Term array.
    I'm thankful for fixed problem.

    in reply to: How to set meta_query of Group cloneable fields for search #7018
    yumikomyumikom
    Participant

    Hi,

    One of solution method most suitable for this topic was found.
    For example I'd like to search for the maximum value and date period in group rows.

    I make readonly text field for search condition 'meta_query'.
    When post save with get value(min, max for search)
    and update_post_meta() in post_save ()action.

    A search could be sped up by readonly field for group data searches.

    For example save_post action

    add_action( 'save_post', 'savepost_update_meta' );
    function savepost_update_meta($post_id){
        
        // check post type or category, etc.
        if(get_post_type($post_id) !== 'post_type_foo') return;
        
    
        // get group meta data
        $groupRows = rwmb_meta('goup_id', $args = array(), $post_id);
        $priceMin = '';
        $priceMax = '';
        
        if($groupRows){
            foreach($groupRows as $row){
                $price = isset($row['field_price']) ? $row['field_price'] : '';
                           
                // check value
                if(empty($priceMin)){
                    $priceMin = $price;
                }else{
                    if((int)$price < (int)$priceMin) $priceMin = $price;
                }
                if((int)$priceMax < (int)$price) $priceMax = $price;
            }
            
            // update readonly meta field
            update_post_meta($post_id, 'field_readonly_text_min_price', $priceMin);
            update_post_meta($post_id, 'field_readonly_text_max_price', $priceMax);
            
        }else{
            // delete readonly meta field when nothing group data
            delete_post_meta($post_id, 'field_readonly_text_min_price'); 
            delete_post_meta($post_id, 'field_readonly_text_max_price'); 
        }
    }
    
    
    $meta_query[] = array(
                    'key' => 'field_readonly_text_min_price',
                    'value' => $searchPrice,
                    'compare' => '<=',
                    'type' => 'NUMERIC'
                );
    

    Thanks anyway!

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #6962
    yumikomyumikom
    Participant

    Dear Giang,

    I found a problem.
    Use function rwmb_meta with taxonomy_advanced field and it's return value is all terms!

    Use function get_post_meta works fine it's return value string array.

    get_post_meta return array(1) { [0]=> string(7) "332,333" }
    rwmb_meta return WP_term object of all terms in taxonomy_advanced selected taxonomy.

    Best regards.

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #6961
    yumikomyumikom
    Participant

    Dear Giang,

    I tried fixed file and works fine!
    For a while, taxonomy_advanced field is testing and if something is found, it'll be reported again.

    Thank you very much for your support.

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #6952
    yumikomyumikom
    Participant

    Do you seem able to fixed this problem?
    I have to explain the situation to a client. Please tell your status for this problem.
    Best regards.

    in reply to: How to set meta_query of Group cloneable fields for search #6951
    yumikomyumikom
    Participant

    Hi,

    Thank you very much for telling me important information.
    It's being hoped to be able to use meta_query.

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #6937
    yumikomyumikom
    Participant

    I just sent a mail.

    This is different talk, but....' Notify me of follow-up replies via email' not working.
    I can't received notify mail from this forum.

    I hope to be for one day earlier and fixed problem form Taxonomy_advanced.

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #6921
    yumikomyumikom
    Participant

    I update and tried MB Builder, but it doesn't seem that a problem is fixed perfectly.

    - chosen taxonomy_advanced
    - 'Taxonomy Advanced' general attribute is custom taxonomy(example 'airport')
    - Field type 'Select advanced'
    - Custom attribute add 'multiple' = true

    and Custom post type(example 'flight') New post.
    - 'Taxonomy Advanced' field not show selected custom taxonomy.
    show only post categories.

    I'd like to use selected custom taxonomy by 'Taxonomy Advanced'.

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #6910
    yumikomyumikom
    Participant

    I'd like to use Taxonomy advanced by the present project.
    Please tell me how to use Taxonomy advanced use with Meta Box builder now.
    For example export file is edited and Re-imported when there are other ways.

    Was there a problem?

    in reply to: same taxonomy Taxonomy Advanced fields not saving data #6887
    yumikomyumikom
    Participant

    I'm using taxonomy_advanced field Or can't use taxonomy_advanced with MetaBox Builder?

    The sent data using 'taxonomy_advanced' in MB Builder fields.

Viewing 15 posts - 1 through 15 (of 31 total)