Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
You can use the plugin Post Type Switcher to change the CPT slug.
https://wordpress.org/plugins/post-type-switcher/Long Nguyen
ModeratorHi,
If you want to add the CPT slug to the URL of the taxonomy. Please follow this topic https://wordpress.stackexchange.com/questions/94817/add-category-base-to-url-in-custom-post-type-taxonomy
Long Nguyen
ModeratorHi,
Can you please share some screenshots of the
datetimepicker on your side? And the code that creates the field.You can change the display of
datetimepicker by using the settingjs_options. Get more details on the documentation https://docs.metabox.io/fields/datetime/#settingsLong Nguyen
ModeratorHi,
So now the featured image is working as well on your end, isn't it? It might be a caching issue when you re-save the CPT settings.
Long Nguyen
ModeratorHi,
If you want to add some HTML code between fields, you can follow the field appearance filters documentation https://docs.metabox.io/filters/#field-appearance-filters
Long Nguyen
ModeratorHi Artur,
I see the View shortcode works as well on my site. You can assign the Type to Shortcode and add the shortcode to the Oxygen Builder. Screenshot https://share.getcloudapp.com/Kou4PxRd
Long Nguyen
ModeratorHi,
It's so weird. Please try to follow the Debugging Information step here https://support.metabox.io/topic/how-to-create-a-new-topic/.
If there is no error message and the helper function still does not work, please share your site credentials via this contact form https://metabox.io/contact/. I will help you to check the issue.
Long Nguyen
ModeratorHi Gildo,
I didn't see the issue on my end, screen record https://share.getcloudapp.com/OAuQAkzY. If it works for other fields, the
image_advancedalso works. You can try to use the WordPress functionwp_get_attachment_image()to get the image info based on the image ID.
https://developer.wordpress.org/reference/functions/wp_get_attachment_image/Long Nguyen
ModeratorHi,
Thank you for your explaination.
I've informed the development team to check this issue and get back to you later.
Long Nguyen
ModeratorHi,
For the case above, user meta. You need to add the attribute
object_typeto the second argument. Get more details on the documentation https://docs.metabox.io/extensions/mb-user-meta/#getting-field-value$primary_mobile = rwmb_meta( 'primary_mobile', ['storage_type' => 'custom_table', 'table' => 'wp_subscriber_info', 'object_type' => 'user'], 2 ); echo $primary_mobile;Please try to run the code and let me know how it goes.
Long Nguyen
ModeratorHi,
The table name is
wp_subscriber_info, can you please recheck it?$value = rwmb_meta( 'primary_mobile', ['storage_type' => 'custom_table', 'table' => 'wp_subscriber_info'], 2 ); echo $value;Long Nguyen
ModeratorHi Artur,
Can you please share the View code that you create to show field values? You can follow the documentation to create a shortcode with PHP code then insert the shortcode to the Oxygen Builder to show the user meta
https://docs.metabox.io/extensions/mb-user-meta/#getting-field-value
https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-buildersLong Nguyen
ModeratorHi,
Please make sure that
2is the post ID that you save the field value. And please share the code that creates the custom table and fields. I will try to run the code on my end to investigate the issue.Long Nguyen
ModeratorGreat!
Let me know if you have any questions.
Long Nguyen
ModeratorHi Luigi,
Can you please clarify the question?
Do you want to build a form from scratch or insert the frontend submit form into your PHP code?
-
AuthorPosts