Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
To use the shortcode in the Elementor builder, you need to create your own code in View to get the field value and HTML elements. You can refer to this tutorial https://docs.metabox.io/tutorials/category-thumbnails/
and read more on the documentation https://docs.metabox.io/extensions/mb-views/
https://docs.metabox.io/extensions/mb-term-meta/Peter
ModeratorHello,
Thanks for sharing the solution. Let us know if you have any questions.
March 7, 2023 at 7:01 PM in reply to: How to show and edit the terms / tax in Form Submission? #40872Peter
ModeratorHello,
You can use the custom field
taxonomyto add a term to a post in the frontend submission form. Please read more on the documentation https://docs.metabox.io/fields/taxonomy/Peter
ModeratorHello,
I don't know what the error on your site is. Can you please share the full error log? You can use https://pastebin.com/ and share the link here.
Also, please let me know how I can reproduce the issue.
Peter
ModeratorHello,
You can read more about the benefit when using the custom field and custom taxonomy here https://metabox.io/custom-fields-vs-custom-taxonomies/
Peter
ModeratorHello,
1. Edit the CPT and go to the taxonomy tab, select it and save. Or go to the Post types tab and select the CPT and save. These do the same thing.
In fact, you need to assign the post type and taxonomy when editing the post type and taxonomy also. Please read more on the WordPress documentation https://developer.wordpress.org/reference/functions/register_post_type/#taxonomies
When registering a post type, always register your taxonomies using the taxonomies argument. If you do not, the taxonomies and post type will not be recognized as connected when using filters such as parse_query or pre_get_posts. This can lead to unexpected results and failures. Even if you register a taxonomy while creating the post type, you must still explicitly register and define the taxonomy using register_taxonomy().2. In the CPT add a taxonomy field and choose the taxonomy.
Yes, the custom field
taxonomyof Meta Box support setting post terms like the standard taxonomy box of WordPress. There is one note, you can only use one of two on the same page. If you set two categories for the post in different boxes, only one can work.
Please read more on the documentation https://docs.metabox.io/fields/taxonomy/Peter
ModeratorHello,
Thank you for your feedback.
I'm not able to reproduce the issue on my local site with Meta Box plugin version 5.6.17, a settings page and an empty custom field color picker.
Do you type a "red" string into the color picker field? If yes, I think that would cause the issue.Peter
ModeratorHello,
So the remote validation can help you in this case. Please try to use it and let me know if you have any questions.
Peter
ModeratorHello,
Thanks for reaching out.
Page is a type of post, post type "page". You can read more on the WordPress documentation https://developer.wordpress.org/themes/basics/post-types/
Regarding the post type structure, it depends on your requirements, you can try to use the post-type hierarchical in this case. For a complex travel website, I think using a third-party plugin or theme that supports this feature is much more than building the site from scratch. You will need to have basic knowledge of WordPress and Meta Box coding.
There are some series about building a simple site on our blog posts, please read more here https://metabox.io/series/hotel-booking/
Peter
ModeratorHello,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a closer look.Peter
ModeratorHello,
Can you please clarify your question? Do you want to validate the field value on the server side? You can try to use the remote validation as in the documentation https://docs.metabox.io/validation/
March 6, 2023 at 6:54 PM in reply to: Select advanced & filter by term meta relation 2 taxonomy #40848Peter
ModeratorHello,
You can try to use the taxonomy hierarchical and use the field type select_tree or checkbox_tree to display terms under a parent term.
Please read more on the documentation https://docs.metabox.io/fields/taxonomy-advanced/#settingsMeta Box does not support displaying the field value based on another field value on "live" like that. You will need to create more custom JavaScript code to accomplish that task.
March 6, 2023 at 6:44 PM in reply to: [Feature Request] Conditionally Set Value Of Field Based On Value Of Another #40847Peter
ModeratorHello,
Thank you for your suggestion.
Currently, MB Conditional Logic only supports showing/hiding fields based on the value of other fields. It does not support settings/changing the value of a field based on the value of other fields like that. I will inform the development team to consider supporting this feature in future updates.
Peter
ModeratorHello,
Thank you for your feedback.
I can reproduce the issue on my local site and I've escalated this issue to the development team to fix it in the next update.
March 5, 2023 at 10:17 PM in reply to: Using tax_input[taxonomy_slug] as conditional logic parameter not working #40841Peter
ModeratorHello,
The input value in the builder is always wrapped in single quotes so it will not work with the term ID. Please use the term slug instead of term ID in this case.
-
AuthorPosts