Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Kurt,
Thank you for your feedback.
Can you please let me know how to reproduce the issue and share the error log?
Long Nguyen
ModeratorHi Becky,
You can use the parameter
authorto show posts of an author. Read more here https://developer.wordpress.org/reference/classes/wp_query/#author-parametersand it is possible the number of posts displayed is limited, you can assign the parameter
posts_per_pageto-1to display all posts. Read more here
https://developer.wordpress.org/reference/classes/wp_query/#post-page-parametersLong Nguyen
ModeratorHi Nick,
Yes, it is possible. You can create your own class user dashboard to display anything on the user dashboard page. Refer to this topic https://support.metabox.io/topic/duplicate-dashboard-shortcode/
Long Nguyen
ModeratorHi,
I think no need to use the extension MB Relationship in your case. You can create a custom function to check if the post has a tag ID and then set the category for the post and hook this function to the action
save_post. For example:add_action( 'save_post', 'set_post_category', 10,3 ); function set_post_category( $post_id, $post, $update ) { // Only want to set if this is a new post! if ( $update ){ return; } // Only set for post_type = post! if ( 'post' !== $post->post_type ) { return; } $posttags = get_the_tags( $post_id ); if ( $posttags ) { foreach( $posttags as $tag ) { if( $tag->term_id == 12 ) { wp_set_post_categories( $post_id, [34, 56], true); } } } }where
12is the tag ID, and34,56is the category IDs.Read more on the documentation
https://developer.wordpress.org/reference/hooks/save_post/
https://developer.wordpress.org/reference/functions/get_the_tags/
https://developer.wordpress.org/reference/functions/wp_set_post_categories/Long Nguyen
ModeratorHi Dragos,
The options and field settings are registered on load with the code, it does not add the option automatically if you insert a value to the database.
Please follow this documentation to know how to edit meta boxes and custom fields https://docs.metabox.io/edit-meta-boxes/
Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've escalated this issue to the development team to fix it.
Long Nguyen
ModeratorHi Kelly,
Does that mean adding the View shortcode to the title of the post that you added the View shortcode to the post content? https://monosnap.com/file/zOmIZbHezAEnJibaZHdOD4zwceqBh9
Long Nguyen
ModeratorHi,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a closer look.May 26, 2022 at 10:03 AM in reply to: Category ARchive of wordpress doesn't Show the CPT of metabox #36188Long Nguyen
ModeratorHi,
You need to add the code to the file archive template in the theme/child theme folder, for example archive.php. If you are not familiar with coding, you can create a service request here https://metabox.io/contact/, our development team will help you with an extra fee.
May 26, 2022 at 9:55 AM in reply to: ✅How does MB Avatar Plugin enable the front end user to upload his avatar? #36187Long Nguyen
ModeratorHi Eddy,
Please update the plugin MB User Avatar to the new version 1.0.1 then you can use this meta box ID
mb-user-avatarin the user shortcode.[mb_user_profile_info id="mb-user-avatar"]Let me know how it goes.
Long Nguyen
ModeratorHi,
You can use the WP function
remove_submenu_page()to remove a sub-menu page. Refer to this topic https://stackoverflow.com/questions/43452565/how-to-delete-all-items-and-add-new-inside-a-custom-post-type-menu-in-wordprLong Nguyen
ModeratorHi Ole,
The field
image_uploadsaved the IDs of images in the database. So if you want to get an array with the indexed key like that, you can use the functionget_post_meta(). For example:$value = get_post_meta( $post_id, 'image_upload' );It will return an array of image IDs and you can get image info by using the function wp_get_attachment_image().
Long Nguyen
ModeratorHi,
Please create a staging site and share the site credentials via this contact form https://metabox.io/contact/. I will help you to check the issue.
Long Nguyen
ModeratorHi,
If you want to translate the tab label, please help us to translate strings here https://translate.wordpress.org/projects/wp-plugins/mb-custom-post-type/
Then you can install the plugin MB Custom Post Type independently to get the translation.
Long Nguyen
ModeratorHi Kelly,
Do you mean to add the view shortcode to the current view title?
[mbv name="my-view"]
Screenshot https://monosnap.com/file/08vYvCxq6b3ZvDtFfyxMZDfilpO6Mk -
AuthorPosts