Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 706 through 720 (of 3,702 total)
  • Author
    Posts
  • Anh TranAnh Tran
    Keymaster

    Hi Brandon, thanks a lot for your code!

    Just FYI, I added the "Add New" feature for taxonomy/taxonomy advanced. But it's limited to enter only the term name in a text box, not a window for full details like in Pods. I'll investigating in your code and hopefully can bring it to Meta Box soon.

    Anh TranAnh Tran
    Keymaster

    Hi, thanks a lot for your feedback. It's a bug in the sanitization callback, which I've just fixed here. Please try it.

    in reply to: Display tab based on the value of a field within another tab #16306
    Anh TranAnh Tran
    Keymaster

    Hi,

    It's impossible with the current version. I think that can be done with custom code via custom_callback (see the docs), but I haven't tested yet.

    in reply to: Taxonomy Advanced field with ajax? #16281
    Anh TranAnh Tran
    Keymaster

    Hi Paul,

    Can you please post your code of the meta box here for me to check? I couldn't replicate the bug on my localhost.

    Anh TranAnh Tran
    Keymaster

    Hi Paul,

    I see you're using a cache plugin which supports object cache. The error comes from that part (file wp-content/object-cache.php). Can you please check that? Maybe try another cache plugin, or update it to the latest version.

    FYI: Meta Box uses WordPress function wp_cache_get_last_changed, and this function calls object cache.

    in reply to: Multisite settings page only working for the default site #16272
    Anh TranAnh Tran
    Keymaster

    Hi SG,

    Are 3 plugins: your custom plugin, MB Settings Page and Meta Box are network-activated?

    in reply to: Email notification trouble. #16271
    Anh TranAnh Tran
    Keymaster

    Hi Mary,

    That part of the documentation is for the template files, such as template for confirmation message, template for post title field, etc.

    Template files are not for custom actions like what you tried to do with add_action. So, please use the theme's functions.php file or Code Snippets plugin to add your custom actions, as I suggested above.

    in reply to: Email notification trouble. #16267
    Anh TranAnh Tran
    Keymaster

    I got it. You should not add code directly into the plugin. Because when the plugin updates,your modification will lost.

    Instead, please add the code to your theme's functions.php file, or use a plugin like Code Snippet to add code.

    in reply to: Metabox fields are not rendering in facetWP builder layout #16263
    Anh TranAnh Tran
    Keymaster

    Hi Saradhi,

    I think you use the min/max control for FacetWP. I think that's the default look for the control. Each control has a different UI, that's why I think so. I don't think it's a bug. Please ask FacetWP support for details.

    in reply to: MB Group Clone Shortcode #16262
    Anh TranAnh Tran
    Keymaster

    Hi Brian,

    When the HTML code is large, it's recommended to use output buffering to echo the content. Here is the modified code: https://pastebin.com/pk6xkMLb

    in reply to: Email notification trouble. #16261
    Anh TranAnh Tran
    Keymaster

    Hi Mary, can you check the line 155 in the file Form.php? I don't see the add_action text on that file as the error says:

    https://imgur.elightup.com/YKE6VNJ.png

    Anyway, after upgrading to PHP 7, did you check phpinfo() to make sure it's PHP 7? Some host/server requires to restart the PHP service to work.

    in reply to: Classloading problem: Error on save of custom type #16258
    Anh TranAnh Tran
    Keymaster

    Hi Texo,

    I've just tested again and couldn't see the problem. Please see my video:

    https://www.loom.com/share/bd3774f59bcf4ff6b76271fbdb0dd316

    Can you try re-install the MB Builder plugin again to make sure files are all available?

    in reply to: Displaying Featured Image in Admin Columns #16257
    Anh TranAnh Tran
    Keymaster

    Hi John,

    You're right about 2 instantiations. Because the class is designed for single post type, we can't pass an array to its constructor. Initializing it twice for different post types does the job.

    in reply to: Email notification trouble. #16242
    Anh TranAnh Tran
    Keymaster

    Hi Mary,

    Looks like you're using a very old version of PHP, probably 5.2. Please ask your host to update it to the latest version (which is 7.3), or any version >= 5.3. The code then will work.

    in reply to: Displaying Featured Image in Admin Columns #16241
    Anh TranAnh Tran
    Keymaster

    Hi John,

    Please try this snippet:

    add_action( 'admin_init', function() {
        class My_Featured_Image_Columns extends MB_Admin_Columns_Post {
            public function columns( $columns ) {
                $columns  = parent::columns( $columns );
                $position = 'before';
                $target   = 'title';
                $this->add( $columns, 'featured_image', 'Featured Image', $position, $target );
                // Add more if you want
                return $columns;
            }
            public function show( $column, $post_id ) {
                switch ( $column ) {
                    case 'featured_image':
                        the_post_thumbnail( [40, 40] );
                        break;
                    // More columns
                }
            }
        }
    
        new My_Featured_Image_Columns( 'post', array() );
    } );
Viewing 15 posts - 706 through 720 (of 3,702 total)