Forum Replies Created
-
AuthorPosts
-
December 12, 2021 at 12:26 PM in reply to: ✅Dsiplay icons (or images) with field information on frontend #32546
Long Nguyen
ModeratorHi,
You can use the field
switchorcheckboxon the backend to ask for show/hide the image field. Then on the frontend, use the code to check the value of the field and show the image. Just like this$value = rwmb_meta( $field_id ); // If field is on. if ( $value ) { echo 'Slider goes here'; // Do something. echo '<img src="#123" alt="your image here">'; } // If field is off. else { echo 'No slider'; // Do something else. }Refer to the documentation
https://docs.metabox.io/fields/switch/#template-usage
https://docs.metabox.io/fields/checkbox/#template-usage
https://docs.metabox.io/fields/single-image/Long Nguyen
ModeratorHi,
Thanks for your feedback.
I will inform the development team to consider supporting sync Meta Box custom fields with Zapier. Hopefully, it will be available soon.
December 11, 2021 at 1:33 PM in reply to: Server side Validation - restrict only to publish posts #32526Long Nguyen
ModeratorHi,
Validation via input attributes is customizable?
Yes, it can be customized by JavaScript code.
https://www.tutorialspoint.com/Override-HTML5-validationIs there any custom code to use server-side validation to save the post and restrict to publish?
Using JavaScript or input attributes means validating on the client-side (browser). If you want to validate on the server-side, you need to use the PHP code. Please follow the topic from WPSE that you've shared https://wordpress.stackexchange.com/questions/15546/dont-publish-custom-post-type-post-if-a-meta-data-field-isnt-valid
Long Nguyen
ModeratorHi,
Here is an example to query post by taxonomy
{% set args = { post_type: "work", posts_per_page: 6, tax_query: [ { taxonomy: 'category', field: 'slug', terms: 'your-term-slug' } ] } %}Refer to this topic https://support.metabox.io/topic/displaying-two-cpts-in-custom-taxonomy-term/
Long Nguyen
ModeratorHi Sunny,
I've marked your comment as private.
December 11, 2021 at 6:34 AM in reply to: ✅"Show when parent post" not displaying all available posts/pages #32523Long Nguyen
ModeratorHi,
Can you please move some pages with the title "Air ..." to trash and search for the "Electrical Services" page again? If it 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.
December 10, 2021 at 10:18 AM in reply to: WYSIWYG in a cloneable group and Select2 choices list #32514Long Nguyen
ModeratorHi Joonas,
Let me answer your questions.
- You can try to use the function wpautop() to replace the line breaks with the paragraph tags to resolve this issue. Like this
- Currently, Meta Box does not support saving the new tags (free text) to the database and updating that option to the choice list. I will inform the development team to consider adding it to the to-do list for the future development of the plugin.
$group = rwmb_meta( 'group' ); echo wpautop( $group['wysiwyg'] );Long Nguyen
ModeratorHi Ole,
I've tried to install this plugin on my local site, look around the code, and see that it does not support replacing the Meta Box output field with the privacy content. You can try to contact the plugin support to ask for adding a filter hook to modify the output of the Meta Box field. Refer to this documentation https://docs.metabox.io/filters/#rwmb_the_value
December 9, 2021 at 11:04 PM in reply to: ✅"Show when parent post" not displaying all available posts/pages #32509Long Nguyen
ModeratorHi,
Where did you experience this issue, please share some screenshots to re-produce that. Here is a screen record on my end https://www.loom.com/share/b436a1d00110493cb7a38a1658a68f5f
December 9, 2021 at 10:02 PM in reply to: ✅Custom Fields > Produkt Categories > Oxygenbuilder #32507Long Nguyen
ModeratorHi David,
For plugins that officially support Meta Box, like Oxygen Builder, please reach to them if you have any issue with installation, configuration, compatibility, or usage. Refer to our support policy https://support.metabox.io/topic/support-policy/
December 9, 2021 at 3:07 PM in reply to: ✅"Show when parent post" not displaying all available posts/pages #32502Long Nguyen
ModeratorHi,
Please try to deactivate other plugins except Meta Box plugins to isolate the problem, then share some screenshots on your end.
December 9, 2021 at 12:28 PM in reply to: ✅"Show when parent post" not displaying all available posts/pages #32500Long Nguyen
ModeratorHi,
In the Builder, the dropdown only supports showing 10 items for better optimization. But you can type to the box to find the page as well.
Long Nguyen
ModeratorHi Pierre,
Unfortunately, Meta Box does not support a field table like that. I'm going to inform the developer team to consider adding it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi,
I'm using
Beaver Builder Pro: 2.2.6.1
Beaver Themer: 1.2.1.1Using the shortcode to get the post meta value might not need Meta Box. You can try to contact Beaver support to ask for help with this case.
Long Nguyen
ModeratorHi,
I do not see that issue on my end, screen record https://www.loom.com/share/84889eba6ec74469ae2c786f1bdbdce6
-
AuthorPosts