Forum Replies Created
-
AuthorPosts
-
March 17, 2024 at 3:44 PM in reply to: MB_Relationships_API::each_connected not working, need fix or alternative #44886
brandonjp
Participant๐ช
๐
ouch.
hours.
gone.
a note in the docs would be very kindNovember 16, 2023 at 1:06 AM in reply to: โ Some Custom Fields Not Saving after WP/MB Update (not max_input_vars issue) #43816brandonjp
ParticipantHi Peter, I have an update.
โ When using meta-box-aio-1.21.1 on WP 6.3.2 it does not work.
โ When using meta-box-aio-1.21.1 on WP 6.4.1 it DOES work! ๐คทRight now I'm using the latest of everything and it works correctly:
โ MB 5.8.2 and AIO 1.23.1 and WP 6.4.1Just wanted to let you know. ๐
November 8, 2023 at 4:08 AM in reply to: โ Some Custom Fields Not Saving after WP/MB Update (not max_input_vars issue) #43766brandonjp
ParticipantHi Peter, thanks for the reply.
When I'm using meta-box-aio-1.21.1 any field below line 388 https://pastebin.com/x3hbhqbx fails to save.
But when using meta-box-aio-1.20.2 all fields save with no changes to
max_input_varsor revisionsI've been able to replicate this on Dreamhost shared hosting and Rocket & Flywheel hostings.
November 7, 2023 at 4:32 PM in reply to: โ Some Custom Fields Not Saving after WP/MB Update (not max_input_vars issue) #43754brandonjp
ParticipantI have new information!
I could only find a few older versions of MB AIO, but I was able to narrow it down a lot.
meta-box-aio-1.21.1 โ - did not save
meta-box-aio-1.20.2 โ - did save correctlySomewhere between AIO v 1.20.2 and 1.21.1, something changed that seems to be preventing some of my fields from saving. I'm guessing it might have to do with changes to MB Custom Table, as seems to be the only extension I'm using that had significant changes. https://metabox.io/plugins/meta-box-aio/changelog/#:~:text=1.20.2
This might not be entirely a MB problem, as the project I'm working on was my first ever to use MB, so it's very possible I've done something wrong that just happened to work until now ๐คทโโ๏ธ Here is how I'm creating metaboxes: https://pastebin.com/x3hbhqbx
brandonjp
ParticipantI don't have an answer for you, but that's an interesting idea. If so, I'm guessing it would have to be the Isolated Editor rather than the full Block Editor. But I like the idea and I hope it's possible!
brandonjp
ParticipantIt works! Good find, Peter! Add that to the docs!
Thank youbrandonjp
ParticipantHi Peter, thanks for the reply. I've tried that. It has no effect on this issue. It doesn't matter whether the meta box is checked or unchecked in Screen Options. I never shows once the term has been added. https://cln.sh/FjbrxQZP
brandonjp
ParticipantHa! Sorry. You're so right. It's even a snippet I wrote and added myself! ๐คฆ Apologies for my error. Feel free to delete this topic.
June 15, 2023 at 10:31 PM in reply to: [Bug] UI Disappears after changing Sub-Group item to Checkbox #42234brandonjp
ParticipantAnh, (on Facebook) requested an export of my field group. Here it is: https://www.dropbox.com/s/cbylr7v5nzbn4tu/rlc-author-details-2.json?dl=0
June 13, 2023 at 2:20 AM in reply to: Using Shortcode or WP Block markup inside MB Block no longer works #42172brandonjp
ParticipantHi Peter, I can confirm that this is an issue on several sites. It happens even when using default WP theme and only Meta Box plugins enabled.
I believe it is related to this issue: https://support.metabox.io/topic/line-breaks-in-css-getting-wrapped-in-paragraphs/?swcfpc=1 -- Because both problems started happening at the same time after a Meta Box update. And the issue is happening in templates using FSE.
Here is an example url: https://snipsnip.pro/s/629 (screenshot: https://cln.sh/Sr1jhLhh )
The big green box was placed using a shortcode in the Post using Block Editor. And below it is the same shortcode placed in the Single template using the Full Site Editor.brandonjp
ParticipantHi Long & Peter-- I can confirm and add a little more info...
* Using the plain WP Twenty-Twenty-Two theme and only Meta Box & AIO enabled
* When MB View shortcode is placed in a template using full site editor
* any line breaks in CSS or JS inside the MB View get wrapped in paragraph P tagsScreenshot of the View CSS: https://cln.sh/5JNmwclk
Screenshot of the rendered html: https://cln.sh/gHYQNqVTIf the shortcode is used inside another View or placed in a post using block editor, it works correctly. The bug only happens when the short code is added to a template (Single, Archive) or template part (Header, Footer)
So far, I have noticed this issue on at least 6 sites. All are using the latest versions of Meta Box and AIO. Some sites are on WP v6.1.3 and some are WP v6.2.2. All are using FSE Block Themes, but the theme doesn't seem to make a difference: some are using the Twenty Twenty Two, some Twenty-Twenty-Three theme or other FSE themes.
Also, I think this change happened sometime before May 24, that's when my client first noticed the styles not loading. But it might have happened a long time before that.
brandonjp
ParticipantHello. Yes, it can be confusing at first because
argsis a sub-paramater of$argsinregister_taxonomy()register_taxonomy()has an$argsparameter which also has anargskey (screenshot: https://cln.sh/f60ZffjL ) which accepts an Array of arguments to automatically use insidewp_get_object_terms()for this taxonomy.So
wp_get_object_terms()has anorderbyparameter which can be set toterm_order(screenshot: https://cln.sh/SY6PTrBS )So outside of Meta Box when using
register_taxonomy()I can do soemthing like this:register_taxonomy('breeds', 'post', array( 'hierarchical' => false, 'show_in_rest' => true, 'labels' => $labels, 'args' => array( 'orderby' => 'term_order' ) ));brandonjp
ParticipantIs there any way using the MetaBox UI to pass
argswhen registering a custom taxonomy?If I could add
'args' => array('orderby'=>'term_order')to the$argsparameter when registering the custom taxonomy, I would not need additional filtering.(Also, Thank you for explaining that WP creates the Block. For that, I submitted a ticket to Gutenberg: https://github.com/WordPress/gutenberg/issues/51240 )
brandonjp
ParticipantHi Peter - Thanks for the reply.
Here are a couple screenshots...
Backend: https://cln.sh/xBT8XnWg
Frontend: https://cln.sh/y5P0j9d8I'm having this problem on a few sites. But I have a couple sites that are not having this problem. So my next guess is that it might be a conflicting plugin or theme issue. I will check into that next.
But if you have any other ideas, let me know. Thank you!
brandonjp
ParticipantLooks like it's happening on Javascript code too: https://cln.sh/CwJkMz3b
-
AuthorPosts