Forum Replies Created
-
AuthorPosts
-
October 19, 2021 at 2:37 PM in reply to: Is there any limit of maximum number of custom fields for any custom post type? #31391
Long Nguyen
ModeratorHi,
Please follow this article to increase the PHP setting value
max_input_vars
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/If it still does not help, please try to create another field group and add custom fields again.
Long Nguyen
ModeratorHi John,
Please take a look at my screen record
https://share.getcloudapp.com/2NuP22Rm
https://share.getcloudapp.com/YEuP88KRThe code works as well on my demo site
add_filter( 'rwmb_frontend_insert_post_data', 'change_author', 20, 2 ); function change_author ( $data, $config ) { if ( 'announcement-cf' === $config['id'] ) { $data['post_author'] = 2; } return $data; }Long Nguyen
ModeratorHi Natalia,
Please follow this documentation to use the helper shortcode
[rwmb_meta]https://docs.metabox.io/shortcode/You need to pass the post ID to the shortcode to show a map from a post on a page.
[rwmb_meta id="map_field_id" object_id="15"]Long Nguyen
ModeratorHi Artur,
The field
custom_htmldoes not save the value in the database, so the helper functionrwmb_meta()won't render the code on the frontend. You can use the fieldtextareaorwysiwygand bypass the sanitization to add any HTML tags. Refer to this documentation https://docs.metabox.io/sanitization/Long Nguyen
ModeratorHi,
You can use the URL field to redirect a page, refer to this topic
https://support.metabox.io/topic/using-url-field-type/Long Nguyen
ModeratorHi,
I think the post author does not change to the user ID 2 because the frontend submit shortcode is missing the attribute
post_type[mb_frontend_form id="announcement-cf" ajax="true" edit="true" submit_button="Add/Update" allow_delete="true" confirmation="Announcement was Added/Updated" post_type="announcement-cpt"]You can also try to use this code, it works as well on my demo site
add_filter( 'rwmb_frontend_insert_post_data', 'change_author', 20, 2 ); function change_author ( $data, $config ) { if ( 'announcement-cf' === $config['id'] ) { $data['post_author'] = 2; } return $data; }Using the frontend form filter https://docs.metabox.io/extensions/mb-frontend-submission/#post-data-filters
Long Nguyen
ModeratorHi,
It looks like Elementor does not support showing the date from the Unix timestamp (field value). You can disable the option timestamp of the field setting to show it on the Elementor builder.
Long Nguyen
ModeratorHi,
Thank you for reaching out.
Hi, if I purchase 199$ Plan, will I get all extensions mentioned under "extensions" menu?
Yes, with the Developer Bundle license, you will have access to all extensions.
I mean will I be getting these 3rd party plugins too, right?
No, we only provide/support the integration plugins, not the third-party plugins.
I am also not able to buy anything from my credit card, can you please check if my email ID is flagged or what?
Your credit card is flagged by the payment gateway. Please try to pay again with another card or PayPal.
Long Nguyen
ModeratorHi,
I've issued a refund for you.
Let me know if you have any questions.October 18, 2021 at 2:22 PM in reply to: ✅How can I show a map marker using OSM on a custom field in a custom taxonomy #31369Long Nguyen
ModeratorHi Jons,
You can use the helper shortcode to show the term meta (map) on the term archive page.
[rwmb_meta id="map_marker" object_id="1234" object_type="term"]If you use the code block of Oxygen builder, you can try to use this code
$args = array( 'width' => '640px', 'height' => '480px', 'zoom' => 14, 'marker' => true, 'marker_title' => 'Click me', 'info_window' => '<h3>Title</h3><p>Content</p>.', 'object_type' => 'term', ); echo rwmb_meta( 'map_marker', $args, get_queried_object_id() );Refer to the documentation
https://docs.metabox.io/extensions/mb-term-meta/#getting-field-value
https://docs.metabox.io/fields/osm/#template-usageLong Nguyen
ModeratorHi,
You can use the frontend form hooks to trigger some JS functions, such as
rwmb_frontend_after_save_post. Please refer to this documentation https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1Long Nguyen
ModeratorHi Thomas,
The
redirectattribute of the frontend shortcode has been added. Please read more on the documentation
https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes[mb_frontend_form id="meta-box-id" post_fields="title,content" redirect="http://your-site-url.com"]Long Nguyen
ModeratorHi,
Follow the FF documentation, you can try to use this code
add_action('fluentform_before_submission_confirmation', 'your_custom_confirmation_function', 20, 3); function your_custom_confirmation_function( $entryId, $formData, $form ) { // Do your stuff here MB_Relationships_API::add( get_queried_object_id(), $entryId, 'your-relationship-ID', $order_from = 1, $order_to = 1 ); }to add the relationship between the post submitted via the form and the current page that shows the form.
October 17, 2021 at 9:16 PM in reply to: Custom Fields: TextArea Default Value is not a TextArea #31360Long Nguyen
ModeratorHi Kyle,
Thank you for your feedback.
I've informed the development team to support multi-lines in the default value option for
textareafield.Long Nguyen
ModeratorHi,
Thanks for sharing your solution.
I've also informed Key Master Anh Tran to create a filter hook to modify the main query of the dashboard to show posts for the specific user role.
-
AuthorPosts