Forum Replies Created
-
AuthorPosts
-
[email protected]
Participant@AJ Tatum: We reverted also. I see that they have released 5.7.3. Have you tried that yet? I'm hoping it will fix this issues. But the weekend isn't the best time for me to find out. ๐
[email protected]
ParticipantInteresting. Hopefully, these things in MB will be moved forward to support block and site editor. That's the future of WordPress even if we don't feel ready for that. Oddly, this setting worked even with the block editor until the latest version of MB.
Have a good weekend. You can close this.
[email protected]
ParticipantSOLVED but there is something not right.
Here's a video that explains what we figured out:
https://d.pr/v/7w1buOHere's the code I reference in the video:
<?php $terms = rwmb_meta( 'taxonomy_groups' ); ?> <h3>Project categories</h3> <ul> <?php foreach ( $terms as $term ) : ?> <li><a href="<?= get_term_link( $term ) ?>"><?= $term->name ?></a></li> <?php endforeach ?> </ul> <?php // or simpler: ?> <h3>Project categories</h3> <?php rwmb_the_value( 'taxonomy_groups' ); ?>[email protected]
ParticipantSorry for the separate replies. This will be my last one until I hear from you again I think. If I disable the extension "MB Builder" in the AIO plugin, the error goes away (of course so do my custom fields). I'm happy to provide admin access if that would help.
[email protected]
ParticipantWith ONLY Meta Box and Meta Box AIO enabled on the Twenty Twenty Three theme I still get the fatal error.
If I have only Meta Box enabled (and not AIO), I don't get the error.[email protected]
ParticipantHere's a screencast showing the error: https://d.pr/i/VJXuyk
[email protected]
Participant'Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/mywp/serve.mywp.dev/wp-admin/includes/template.php:1481 Stack trace: #0 /home/mywp/serve.mywp.dev/wp-content/plugins/meta-box/inc/fields/taxonomy.php(310): remove_meta_box('groupdiv', NULL, 'side') #1 /home/mywp/serve.mywp.dev/wp-content/plugins/meta-box/inc/fields/taxonomy.php(301): RWMB_Taxonomy_Field::remove_default_meta_box(Array) #2 /home/mywp/serve.mywp.dev/wp-content/plugins/meta-box/inc/field.php(535): RWMB_Taxonomy_Field::admin_enqueue_scripts(Array) #3 /home/mywp/serve.mywp.dev/wp-content/plugins/meta-box/inc/meta-box.php(134): RWMB_Field::call(Array, 'admin_enqueue_s...') #4 /home/mywp/serve.mywp.dev/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/src/Form.php(84): RW_Meta_Box->enqueue() #5 /home/mywp/serve.mywp.dev/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/src/Shortcode.php(35): MBFS\Form->render() #6 /home/mywp/serve.mywp.dev/wp-includes/shortcodes.php(355): MBFS\Shortcode->shortcode(Array, '', 'mb_frontend_for...') #7 [internal function]: do_shortcode_tag(Array) #8 /home/mywp/serve.mywp.dev/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(mb_fro...', 'do_shortcode_ta...', '<div class="fl-...') #9 /home/mywp/serve.mywp.dev/wp-content/plugins/bb-plugin/classes/class-fl-builder.php(1999): do_shortcode('<div class="fl-...') #10 /home/mywp/serve.mywp.dev/wp-content/plugins/bb-plugin/classes/class-fl-builder.php(2055): FLBuilder::render_content_by_id(1668) #11 /home/mywp/serve.mywp.dev/wp-includes/class-wp-hook.php(308): FLBuilder::render_content('\n\n\t<p>You can u...') #12 /home/mywp/serve.mywp.dev/wp-includes/plugin.php(205): WP_Hook->apply_filters('\n\n\t<p>You can u...', Array) #13 /home/mywp/serve.mywp.dev/wp-includes/post-template.php(255): apply_filters('the_content', '<!-- wp:fl-buil...') #14 /home/mywp/serve.mywp.dev/wp-content/themes/kadence/template-parts/content/entry_content.php(27): the_content('Continue readin...') #15 /home/mywp/serve.mywp.dev/wp-includes/template.php(785): require('/home/mywp/serv...') #16 /home/mywp/serve.mywp.dev/wp-includes/template.php(718): load_template('/home/mywp/serv...', false, Array) #17 /home/mywp/serve.mywp.dev/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #18 /home/mywp/serve.mywp.dev/wp-content/themes/kadence/template-parts/content/single-entry.php(28): get_template_part('template-parts/...', 'page') #19 /home/mywp/serve.mywp.dev/wp-includes/template.php(785): require('/home/mywp/serv...') #20 /home/mywp/serve.mywp.dev/wp-includes/template.php(718): load_template('/home/mywp/serv...', false, Array) #21 /home/mywp/serve.mywp.dev/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #22 /home/mywp/serve.mywp.dev/wp-content/themes/kadence/inc/template-functions/single-functions.php(27): get_template_part('template-parts/...', 'page') #23 /home/mywp/serve.mywp.dev/wp-includes/class-wp-hook.php(308): Kadence\single_content('') #24 /home/mywp/serve.mywp.dev/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #25 /home/mywp/serve.mywp.dev/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #26 /home/mywp/serve.mywp.dev/wp-content/themes/kadence/template-parts/content/single.php(34): do_action('kadence_single_...') #27 /home/mywp/serve.mywp.dev/wp-includes/template.php(785): require('/home/mywp/serv...') #28 /home/mywp/serve.mywp.dev/wp-includes/template.php(718): load_template('/home/mywp/serv...', false, Array) #29 /home/mywp/serve.mywp.dev/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #30 /home/mywp/serve.mywp.dev/wp-content/themes/kadence/inc/template-functions/single-functions.php(20): get_template_part('template-parts/...', 'page') #31 /home/mywp/serve.mywp.dev/wp-includes/class-wp-hook.php(308): Kadence\single_markup('') #32 /home/mywp/serve.mywp.dev/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #33 /home/mywp/serve.mywp.dev/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #34 /home/mywp/serve.mywp.dev/wp-content/themes/kadence/page.php(20): do_action('kadence_single') #35 /home/mywp/serve.mywp.dev/wp-includes/template-loader.php(106): include('/home/mywp/serv...') #36 /home/mywp/serve.mywp.dev/wp-blog-header.php(19): require_once('/home/mywp/serv...') #37 /home/mywp/serve.mywp.dev/index.php(17): require('/home/mywp/serv...') #38 {main} thrown in /home/mywp/serve.mywp.dev/wp-admin/includes/template.php on line 1481
'
[email protected]
ParticipantAha. Great. Is there a place where I could see the parameters for the shortcode? Like image size, alt text, etc.
Thanks for your assistance![email protected]
ParticipantOkay. I'll try to reinstall it. BTW - I did follow the debug procedures. The only thing that made it start working again was downgrading AIO to a previous version. Maybe reinstalling it will work.
[email protected]
ParticipantI downgraded to version 1.13.8 (metabox-aio) on the site in question and everything works as it did before updating to 1.14.1. Perhaps there is something wrong in that new version.
July 11, 2021 at 8:09 PM in reply to: โ Cloneable Fields in View (using shortcode) won't show in Beaver Themer layout #29425[email protected]
ParticipantThank you for your answer. I ended up building a function and shortcode to drop the information into the post module custom layout. I couldn't figure out how to tell the View what the post id was inside the Beaver Themer module. It's works using this function.
function member_contact_info(){ echo '<div class="member-org-title">', get_the_title( $post_id ),'</div>'; $contact_values = rwmb_meta( 'member_group_contacts' ); if ( ! empty( $contact_values ) ) { foreach ( $contact_values as $contact_value ) { echo '<div class="member-contact-group">'; echo '<div class="contact-name">', $contact_value['member_contact_name'], '</div>'; echo '<div class="contact-title">', $contact_value['member_contact_title'], '</div>'; echo '<div class="contact-email"><a href="mailto:', $contact_value['member_contact_email'], '">',$contact_value['member_contact_email'], '</a></div>'; echo '<div class="contact-phone">', $contact_value['member_contact_phone'], '</div></div>'; } } } add_shortcode('membercontact', 'member_contact_info');I cobbled it together using information I found in the Metabox documentation. Thanks again.
[email protected]
ParticipantThanks. I got it working. I was enqueueing the scripts in the wrong order.
[email protected]
ParticipantI was not using the parameter on the correct short code. Silly mistake. Thanks for the help! It's working great now.
[email protected]
ParticipantThanks very much. I will give it a try! I really appreciate the way you answer questions on the Support Forum. I've read lots of your answers here and they are always very kind and very helpful!
April 26, 2021 at 10:38 PM in reply to: โ Trying to pull the URL for a file upload from Settings Page using Shortcode #27661[email protected]
ParticipantThanks for your response. I fought with this for several more hours. I finally decided to just try changing the "key" for the Tab settings on each tab in my Settings Page setup. I had used numbers for those and I changed the to words. Now the fields show up using views as they are supposed to. Is that really what was wrong? I mean is the correct setup for the Key on the tabs in Settings Pages supposed to be words and not numbers?
-
AuthorPosts