Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Follow your ticket in our ticket system, it is not possible to get the term meta from the post page with Elementor page builder. Refer to this topic https://support.metabox.io/topic/accessing-category-custom-field-at-post-level-in-elementor/
You can create the custom code to get the term meta from a single post. Here are some guidelines:
- Get terms of the post: https://developer.wordpress.org/reference/functions/get_the_terms/
- Get term meta from terms: https://docs.metabox.io/extensions/mb-term-meta/#getting-field-valueLong Nguyen
ModeratorHi,
MB User Profile extension helps you to add the user meta on the frontend. It includes the extension MB User Meta already. Please read more on the documentation
https://docs.metabox.io/extensions/mb-user-meta/
https://docs.metabox.io/extensions/mb-user-profile/Long Nguyen
ModeratorHi,
Thank you for reaching out.
Just to clarify that Meta Box does not handle the style of field value on the frontend, it helps you to output the raw value on the frontend. It is possible that there is a problem with the Oxygen Builder components on your site. Please try to contact Oxygen support to ask for help in this case.
August 17, 2021 at 11:06 AM in reply to: ✅Prepopulate relationship field with current post id #30304Long Nguyen
ModeratorHi,
The function
get_queried_object_id()get the current page ID that show the frontend form as well.add_action( 'rwmb_frontend_after_process', function( $config, $post_id ) { MB_Relationships_API::add( get_queried_object_id(), $post_id, 'events_to_posts', $order_from = 1, $order_to = 1 ); }, 10, 2 );Do you add the frontend shortcode to the
eventspage directly? Or add through a builder template?Or just add the fixed ID of the
eventspage like this
MB_Relationships_API::add( 1234, $post_id, 'events_to_posts', $order_from = 1, $order_to = 1 );Long Nguyen
ModeratorHi,
Yes, it is possible. You can create a few lines of code to show the URL field on the frontend. For example
<a href="<?php echo rwmb_meta( 'field_URL_id' ); ?>"> <button>Click me!</button> </a>Refer to these topics
https://support.metabox.io/topic/how-to-add-custom-field-url-value-to-a-button/
https://support.metabox.io/topic/url-being-displayed-on-the-front-instead-of-a-button/Long Nguyen
ModeratorHi,
Thank you for your feedback.
I've escalated this issue to the development team to fix it in the next update.
August 17, 2021 at 10:14 AM in reply to: Trying to use php to add advanced img from group field #30301Long Nguyen
ModeratorHi,
The
image_keyis the field ID. It might beblurb_1_imagein your case. You can share the code that creates the fields, I can help you to review your code.August 16, 2021 at 11:17 PM in reply to: ✅Use Checkbox Custom Type and When Checked Show Icon on Frontend #30294Long Nguyen
ModeratorHi,
If you are using a builder to create the post template, the theme's template might be ignored by the builder functions. You can try to deactivate all plugins except Meta Box and MB Extensions to re-check the code.
August 16, 2021 at 11:13 PM in reply to: ✅Prepopulate relationship field with current post id #30293Long Nguyen
ModeratorHi,
I've tried many times to explain that the variable
$post_idis pointing to the submitted post ID. So you can just replace$towith$post_idPlease check my code again
add_action( 'rwmb_frontend_after_process', function( $config, $post_id ) { MB_Relationships_API::add( $post_id, $post_id, 'posts_to_posts', $order_from = 1, $order_to = 1 ); }, 10, 2 );Long Nguyen
ModeratorHi Sascha,
Please follow this documentation to know how to show the user meta in the form by using shortcodes https://docs.metabox.io/extensions/mb-user-profile/
Note: if you are using the Builder,
meta-box-idis thefield-group-idLong Nguyen
ModeratorHi,
I'm afraid that there is no way in current. You have to create a field, add a value and add inner blocks in the preview mode of the custom block. I will inform the development team to improve point 2.
Long Nguyen
ModeratorHi,
There is no setting or hook to allow the editors to edit the posts of other users on the frontend dashboard. I will inform the development team to consider adding it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi,
You can add the code
<InnerBlocks />to the Render Code area in the Builder. Screenshot https://imgur.com/cEiGJ1QAugust 16, 2021 at 12:52 PM in reply to: ✅Prepopulate relationship field with current post id #30279Long Nguyen
ModeratorHi,
The problem is you want to execute the function
add()after submitting the frontend form. So we can only use the variable$post_idto point to the post that is created. You can also see that the columnfromdisplay the post ID created on your screenshot https://pasteimg.com/image/screenshot-2021-08-15-103629-am.c3PInThe function
get_queried_object_id()retrieves the ID of the current post when viewing, the functionget_the_ID()retrieves the ID of the post in the loop so we should not use them in this hook.https://developer.wordpress.org/reference/functions/get_the_id/
https://developer.wordpress.org/reference/functions/get_queried_object_id/Long Nguyen
ModeratorHi zazezi,
Please make sure that you have the latest version of Meta Box and Meta Box AIO. Then deactivate all plugins except Meta Box and Meta Box's extension, switch to the default theme of WordPress (Twenty Twenty One).
Let me know if it helped.
-
AuthorPosts