Forum Replies Created
-
AuthorPosts
-
January 13, 2021 at 8:36 AM in reply to: ✅Autosaved Drafts missing custom values and causing error #23999
Long Nguyen
ModeratorHi,
This issue might relate to this topic https://support.metabox.io/topic/fatal-error-in-class-mb-custom-table-loader-php-on-line-58/.
Please share a screen record of the issue and the credentials (Admin site and FTP account) via this form https://metabox.io/contact/. I will check it out.
Long Nguyen
ModeratorHi,
A plugin can be deactivated in these conditions:
- Manual deactivation
- Failed plugin upgrade
- Remove or rename the containing folder
- Changing the active plugin list in the database
So maybe the plugin has been activated the option Automattic Update (WP core) and it has not updated successfully on that time and deactivated itself.
Long Nguyen
ModeratorHi,
Thank you for your reporting.
We've also fixed this issue in a new commit, please wait for the new version of the extension MB Builder.
Long Nguyen
ModeratorHi,
I've contacted the LearnPress support team to ask for updating Meta Box to the higher version and they responded that their developer team is working to release the new version of LearnPress 4.x to fix this issue.
Please wait for the new version of LearnPress. Thank you.
Long Nguyen
ModeratorHi,
If you needn't the extra arguments, please leave the second argument empty.
function query_crm_usados_interna(){ $meta = rwmb_meta( 'if_usados_usad_id', '', get_the_ID() ) return $meta; }Get more details in the documentation https://docs.metabox.io/rwmb-meta/#arguments.
Long Nguyen
ModeratorHi Bret,
I recommend using a different page slug or post type slug. If you use the same slug, it might do not work in some cases (permalinks). Follow this topic from WPSE to get more details https://wordpress.stackexchange.com/questions/135146/resolve-a-custom-post-type-name-vs-page-permalink-conflict-same-slug.
Long Nguyen
ModeratorHi Bret,
There are two points you need to notice:
- The output of the shortcode has to use
return, notecho. Follow WordPress documentation https://codex.wordpress.org/Shortcode_API#Output. It should be:
function mb_cp_logo_shortcode() { $image = rwmb_meta( 'info', array( 'size' => 'full' ) ); return '<a href="'. $image['full_url']. '"><img src="'. $image['url']. '"></a>'; } add_shortcode( 'mb-cp-logo', 'mb_cp_logo_shortcode' );- If you add the shortcode when editing the post with the Oxygen Builder, you don't need to pass the third-argument
$post_idto the shortcode. But if you add the shortcode to the Grid Builder of Oxygen and insert the Grid when editing the post, you have to pass the post ID to the shortcode.
function mb_cp_logo_shortcode() { $image = rwmb_meta( 'info', array( 'size' => 'full' ), 123 ); return '<a href="'. $image['full_url']. '"><img src="'. $image['url']. '"></a>'; } add_shortcode( 'mb-cp-logo', 'mb_cp_logo_shortcode' );See more in the documentation https://docs.metabox.io/rwmb-meta/#arguments.
Long Nguyen
ModeratorHi,
I'm going to check it out and let you know later.
Thank you.
Long Nguyen
ModeratorHi,
This issue has been fixed for a long time ago. Please try to update the newest version of the Meta Box plugin 5.3.7 and WordPress 5.6 then deactivate all plugins except Meta Box and switch to the default theme of WordPress (Twenty TwentyOne) to check the issue again.
Let me know how it goes.
Long Nguyen
ModeratorHi,
Please try to deactivate all plugins except Meta Box, MB extensions, and switch to the default theme of WordPress (Twenty TwentyOne). Then go to the tab Advanced > Option "Show in menu": Show as top-level menu and Update the post type again.
Let me know how it goes.
Long Nguyen
ModeratorHi,
After adding the custom rewrite slug, you should go to Admin Dashboard > Settings > Permalinks > Save the current permalink again to make the custom slug work.
Long Nguyen
ModeratorHi,
You can use the function post_categories_meta_box() as the callback function of the setting
meta_box_cb.The code should be:
$args = [ 'label' => esc_html__( 'Positions', 'irw-position-textdomain' ), 'labels' => $labels, 'description' => '', 'public' => true, 'publicly_queryable' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'meta_box_cb' => 'post_categories_meta_box', //here 'show_in_rest' => true, 'show_tagcloud' => true, 'show_in_quick_edit' => true, 'show_admin_column' => false, 'query_var' => true, 'sort' => false, 'rest_base' => '', 'rewrite' => [ 'with_front' => false, 'hierarchical' => false, ], ];Get more details in the documentation https://developer.wordpress.org/reference/functions/register_taxonomy/.
And refer to this topic https://wordpress.org/support/topic/custom-taxonomies-throwing-error/.
Long Nguyen
ModeratorHi Nuno,
Please try to use the option
Custom rewrite slugto change the archive slug. I will discuss this with the developer team to cover this case.Long Nguyen
ModeratorHi,
The pattern in your code works as well on my local site, see this screen record https://share.getcloudapp.com/wbuKO5B5.
Please try to check this case in another browser such as Edge or Firefox.
Long Nguyen
ModeratorHi,
If you’re going to import/export simple fields (like text, select, radio, checkbox, etc.), then you can use these plugins to do the job:
https://wordpress.org/plugins/wp-ultimate-csv-importer/
https://wordpress.org/plugins/wp-ultimate-exporter/For complex fields, we need to code for the integration. We’re still working on it.
Refer to this topic: https://support.metabox.io/topic/import-images-into-custom-table/.
-
AuthorPosts