Forum Replies Created
-
AuthorPosts
-
carassius
ParticipantI realise I cannot use tabs in groups either, which sucks as I was hoping to seperate content from style for each slide
carassius
ParticipantHere is a exported dat file of one I just created
https://gist.github.com/WestCoastDigital/2acd3f0d375e320abe56f4f27c03ef4e
carassius
ParticipantThanks, so that is the builder that output the code for me, so there must be a bug in the builder
carassius
ParticipantFYI 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.carassius
ParticipantHi 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
carassius
ParticipantAwesome, thanks for putting it all together for me. Especially the additional filters, nice touch!
carassius
ParticipantI 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
carassius
ParticipantPerfect timing, I just started creating this myself for a project I am working on
carassius
ParticipantI 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' ), ), ), );carassius
ParticipantYes, 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' );carassius
ParticipantThe 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
carassius
ParticipantAwesome, I wont put one together for my use then 🙂
carassius
ParticipantDon't worry, I'm an idiot, forgot about include/exclude extension
carassius
ParticipantI 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"
carassius
Participantthis 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, ), ), -
AuthorPosts