Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,471 through 1,485 (of 3,702 total)
  • Author
    Posts
  • in reply to: rwmb_after_save_post #13052
    Anh TranAnh Tran
    Keymaster

    Yes, I think so. Not sure where it comes from, since Meta Box doesn't use JSON at all.

    in reply to: Query to only show posts which are connected #13040
    Anh TranAnh Tran
    Keymaster

    Hi Max,

    Querying posts using relationship as a condition is not supported. You might want to query posts as usual, then perform an API call to get connected items for each post. Then you can use condition to decide whether to show them.

    MB_Relationships_API::each_connected( array(
        'id'   => 'posts_to_pages',
        'from' => $wp_query->posts, // 'from' or 'to'.
    ) );
    
    while ( have_posts() ) : the_post();
        // Skip if no connected posts.
        if ( empty( $post->connected ) ) {
            continue;
        }
    
        // Output here
    endwhile;
    in reply to: rwmb_after_save_post #13039
    Anh TranAnh Tran
    Keymaster

    Hi Max,

    I think the problem is there are multiple meta boxes and the hooks don't fire properly. They fire per meta box, so if there are 2 meta boxes, the hook rwmb_before_save_post might fire before one meta box saving action, but after another meta box saving action.

    As Meta Box uses hook save_post_{$post_type} with priority to save the data, please try the replacing the hooks with:

    add_action('save_post_{your_post_type}', 'api_get_old_fields', 0);
    add_action('save_post_{your_post_type}', 'api_set_new_fields', 20);
    in reply to: Refund Request #13030
    Anh TranAnh Tran
    Keymaster

    Hi Scott,

    It's so sad to see you go. Hopefully you'll come back later. I've issued the refund.

    Best regards

    Anh TranAnh Tran
    Keymaster

    Hi Doug, thanks for your help. It's added to the plugin.

    in reply to: Error in select Tree Taxonomy #13021
    Anh TranAnh Tran
    Keymaster

    Hi, can you clearing the browser cache and try again with the latest file from Github? The fix requires new JS file, which needs to clear browser cache.

    in reply to: Error in select tree taxonomy again #13020
    Anh TranAnh Tran
    Keymaster

    Thanks for notifying us. Let's continue the discussion in the previous topic since it has details.

    in reply to: Update to 1.2.18 from 1.2.17 doesn't work #12984
    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your feedback. I forgot to update the version number in the PHP file. Please try to update again!

    Anh TranAnh Tran
    Keymaster

    Hi criv23,

    In the callback filter mb_aio_extension, can you change the code to return $extensions instead of $option and see if it works?

    in reply to: General, Appearance, and Advanced tabs not showing #12982
    Anh TranAnh Tran
    Keymaster

    Hi Christine,

    Sorry for this issue. Zeeshan just left our support team, so I'll continue support you on this. I think the error in the console is not the cause of the bug since it's only the map file. Can you please take a screenshot of the MB Builder screen? And if possible, please send me a temporary admin account via contact form, so I can do some debug on your site.

    Thanks.

    in reply to: MB Group "std" is not showing up in settings page #12963
    Anh TranAnh Tran
    Keymaster

    That's so great, Razib. I've just added that to the latest version 1.2.18 (along with other fixes as well).

    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. It's strange that I couldn't replicate the bug in the latest version 1.6.18 :(.

    Anh TranAnh Tran
    Keymaster

    I don't think there's any side effect. This configuration only increases the number of inputs submitted.

    To avoid this issue in the future, reducing the number of inputs is the best way. However, I guess it's not feasible in this case. But as long as you keep the max_input_vars high, you don't need to worry about that.

    Anh TranAnh Tran
    Keymaster

    I'm so sorry. This was the debug code that I forgot to remove in the plugin. I've just fixed the plugin, please update.

    in reply to: Taxonomy count doesn't increment #12949
    Anh TranAnh Tran
    Keymaster

    Hi Juan,

    Thanks for your feedback.

    The problem here is the field type is taxonomy_advanced. This field does not setup a relationship between posts and terms. Instead, it only saves terms' IDs in the custom table (or post meta if you don't use custom table).

    To setup the correct relationship between posts and terms, please use field type taxonomy. In this case, the plugin does not save any value. Instead, it only sets the post terms. And thus, the WordPress counter works correctly.

Viewing 15 posts - 1,471 through 1,485 (of 3,702 total)