Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorNo worries. Let me know if you have any questions.
Long Nguyen
ModeratorHi,
You can see the post type slug in the URL, screenshot https://share.getcloudapp.com/llu6vzy5
then the frontend submission shortcode should be
[mb_frontend_form post_fields='title,content' post_type='job']Long Nguyen
ModeratorHi Philip,
If you are using the builder to create the custom post type, the post type slug should be a string instead of all numbers like this
29132, I think. Can you please share some screenshots of your post type slug?Long Nguyen
ModeratorHi,
I do not see that issue on my end, screen record https://share.getcloudapp.com/7KuqgK0Z
The sitemap still works as well.
December 27, 2021 at 6:21 PM in reply to: ✅Dashboard can't get submitted custom posts stored in custom table #32875Long Nguyen
ModeratorHi Philip,
Please create a new topic and include the details (or some screenshots) of the issue. I will help you to troubleshoot it.
Long Nguyen
ModeratorHi,
Can you please share the code that you are using to set the field value? You can use the helper function rwmb_set_meta() or WordPress function update_post_meta() to set the field value.
Long Nguyen
ModeratorHi,
Meta Box does not support a field type
honeypotin both backend and frontend. You can create a simple text field and hide it on the frontend like thehoneypotfield. Follow these articles
https://dev.to/felipperegazio/how-to-create-a-simple-honeypot-to-protect-your-web-forms-from-spammers--25n8
https://www.thryv.com/blog/honeypot-technique-html-form-spam-protection/December 27, 2021 at 12:39 PM in reply to: ✅Taxonomy count not changing after connecting a term:term relationship (AIO) #32871Long Nguyen
ModeratorHi Sam,
If you are familiar with coding, you can use the WP function wp_set_post_terms() to set post terms. Or contact a developer to create a snippet code to do that.
Long Nguyen
ModeratorHi Michele,
Thanks for your feedback.
I'm going to check this issue and get back to you later.
Long Nguyen
ModeratorHi,
Here is the code that works on my end.
add_filter( 'get_avatar' , 'my_custom_avatar' , 1 , 5 ); function my_custom_avatar( $avatar, $id_or_email, $size, $default, $alt ) { $user = false; if ( is_numeric( $id_or_email ) ) { $id = (int) $id_or_email; $user = get_user_by( 'id' , $id ); } elseif ( is_object( $id_or_email ) ) { if ( ! empty( $id_or_email->user_id ) ) { $id = (int) $id_or_email->user_id; $user = get_user_by( 'id' , $id ); } } else { $user = get_user_by( 'email', $id_or_email ); } if ( $user && is_object( $user ) ) { $id = get_main_site_id(); switch_to_blog( $id ); $value = rwmb_meta( 'custom_avatar', array( 'object_type' => 'user' ), $user->ID ); //return image ID $image = get_post( $value ); //get post by image ID if ( $value ) { $avatar = "<img src='" . $image->guid . "' class='avatar avatar-" . $size . " photo' alt='" . $alt . "' height='" . $size . "' width='" . $size . "' />"; } } restore_current_blog(); return $avatar; }You can add the code in the sub-site to get and show the user meta from the main site.
Long Nguyen
ModeratorHi,
If you are using the custom query to get the posts, please follow this documentation to show the post info https://docs.metabox.io/extensions/mb-views/#custom-query.
For example:
{% for post in kinderen %} <div class="row"> <div class="column" id="left-kid-column"> Post thumbnail: {{ mb.get_the_post_thumbnail( post.ID, 'thumbnail' ) }} </div> <div class="column" id="right-kid-column"> <div id="child-name">Post title: {{ post.post_title }}</div> </div> </div> {% endfor %}December 25, 2021 at 6:17 PM in reply to: ✅Taxonomy count not changing after connecting a term:term relationship (AIO) #32861Long Nguyen
ModeratorHi Sam,
The column Count in the Taxonomy page shows the number of posts assigned to the term. But the connection between terms does not assign the posts to the connection term. That is a different point.
Long Nguyen
ModeratorHi Cees,
Yes, you can use the builder to export field groups to JSON files, edit the file to add custom fields, and re-import to the builder. But please be careful with this way, it will break your field group if there is a small error like a typo.
Long Nguyen
ModeratorHi,
Did you try to use this sample code to get the image via
guid?
https://pastebin.com/txYEyDvcDecember 24, 2021 at 12:53 PM in reply to: MB AIO Plugin Conflict with GT3 ListingEasy Core Plugin #32852Long Nguyen
ModeratorHi,
The plugin "GT3 ListingEasy Core" is using Meta Box plugin as a library in their source code. But with the old version 4.9.8 and this happens the error when you activate the plugin Meta Box AIO. Please contact "GT3 ListingEasy Core" support to ask them for updating the Meta Box plugin in their source code to the latest version 5.5.1 to work with MB AIO.
https://wordpress.org/plugins/meta-box/ -
AuthorPosts