Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 93 total)
  • Author
    Posts
  • in reply to: Input Fields at top of section when using tabs #19178
    carassiuscarassius
    Participant

    I realise I cannot use tabs in groups either, which sucks as I was hoping to seperate content from style for each slide

    in reply to: Input Fields at top of section when using tabs #19177
    carassiuscarassius
    Participant

    Here is a exported dat file of one I just created

    https://gist.github.com/WestCoastDigital/2acd3f0d375e320abe56f4f27c03ef4e

    in reply to: Input Fields at top of section when using tabs #19169
    carassiuscarassius
    Participant

    Thanks, so that is the builder that output the code for me, so there must be a bug in the builder

    in reply to: Forgotten test code on line 30 #9580
    carassiuscarassius
    Participant

    FYI Anh

    Updating Plugin Meta Box AIO (1/1)
    Downloading update from https://metabox.io?action=download&product=meta-box-aio&api_key=d586e423f04095abb2303d…
    Unpacking the update…
    Installing the latest version…
    Plugin update failed.
    An error occurred while updating Meta Box AIO: The package could not be installed. The package contains no files.

    in reply to: Forgotten test code on line 30 #9559
    carassiuscarassius
    Participant

    Hi Anh, I just installed via AIO and getting same error

    Warning: include(tests/06-table.php): failed to open stream: No such file or directory in /Users/jon/Sites/evisresort/wp-content/plugins/meta-box-aio/extensions/mb-revision/mb-revision.php on line 30

    Warning: include(): Failed opening 'tests/06-table.php' for inclusion (include_path='.:/usr/local/Cellar/php/7.2.3_3/share/pear') in /Users/jon/Sites/evisresort/wp-content/plugins/meta-box-aio/extensions/mb-revision/mb-revision.php on line 30

    in reply to: BUG in AIO #5603
    carassiuscarassius
    Participant

    Awesome, thanks for putting it all together for me. Especially the additional filters, nice touch!

    in reply to: BUG in AIO #5588
    carassiuscarassius
    Participant

    I have updated the plugin so extensions can be disabled and also added option to install the extensions from the repo if required, as well as fixed the bug.

    I will email it to you to have a look

    in reply to: Suggestion #5584
    carassiuscarassius
    Participant

    Perfect timing, I just started creating this myself for a project I am working on

    in reply to: Suggestion #5426
    carassiuscarassius
    Participant

    I would like to see something like this perhaps

    
    $meta_boxes[] = array(
        'title'      => __( 'Include/Exclude', 'wcd-tradie' ),
        'post_types' => 'page',
            
        // Which page to show on
        'include' => array(
            'slug'            => array( 'home' ),
        ),
            
        // What fields to remove from page
        'exclude' => array(
            'type'            => array( 'editor', 'thumbnail', 'revisions' ),
        ),
            
        'fields'     => array(
                
            array(
                'id'   => 'text',
                'name' => __( 'Text', 'language' ),
                'type' => 'text',
                'std'  => __( 'A Text Field', 'language' ),
            ),
            
        ),
    );
    
    in reply to: Suggestion #5425
    carassiuscarassius
    Participant

    Yes, but conditional

    Eg: this is the function I wrote that determines the home page and then removes the editor with the remove_post_type_support

    /*
    * Hide editor on home page
    * Since v1.0.0
    */
    function homepage_hide_editor() {
        
        // Determine which admin screen we are in
        $screen = get_current_screen();
        // Ensures we are currently editing
        if ( $screen->base != 'post' ) {
            
            // If not editing then escape function
            return;
            
        } else {
            
            // Get the home page ID
            $frontpage_id = get_option('page_on_front');
            
            // Get current post ID
            $post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'];
            // Checks current post ID matches home page ID
            if($post_id == $frontpage_id){
                
                // Removes editor from home page
                remove_post_type_support('page', 'editor');
                
            }
            
        }
        
    }
    add_action( 'current_screen', 'homepage_hide_editor' );
    in reply to: Meta Box Updater Not Working #5406
    carassiuscarassius
    Participant

    The updater did when I did it within a theme, but not when I did it in my recent plugin.

    I have not been back in the office (where the plugin sits on my local machine) to record a video as I have been working remotely off laptop.

    Will be back in the office late today so will double check everything in my code and if still cannot get it to work, will report back with a video

    in reply to: Suggestion #5405
    carassiuscarassius
    Participant

    Awesome, I wont put one together for my use then 🙂

    in reply to: Add Meta Fields to Specific Page(s) #5398
    carassiuscarassius
    Participant

    Don't worry, I'm an idiot, forgot about include/exclude extension

    in reply to: Meta Box Updater Not Working #5394
    carassiuscarassius
    Participant

    I worked out why admin columns wasnt working

    I had a "replace title" field, so "after title" no longer works, instead I needed to change title to field id eg "after slide_heading"

    in reply to: Meta Box Updater Not Working #5375
    carassiuscarassius
    Participant

    this is one of the fields for my admin columns

    
             
                array (
                  'id'              => 'member_job_role',
                  'type'            => 'text',
                  'name'            => __( 'Job/Role', 'wcd-team' ),
                  'columns'         => 6,
                  'tab'             => 'team_name_tab',
                  'admin-columns'   => array(
                      'position'    => 'after title',
                      'title'       => __( 'Position', 'wcd-team' ),
                      'sort'        => true,
                  ),
                ),
    
Viewing 15 posts - 1 through 15 (of 93 total)