Forum Replies Created
-
AuthorPosts
-
January 19, 2024 at 5:33 PM in reply to: ✅Taxonomy appears to save on CPT, but turns up empty on the back-end archive #44352
Peter
ModeratorHello,
You can use this plugin to switch taxonomy for terms https://wordpress.org/plugins/taxonomy-switcher/
Peter
Moderator@DustinD: Your issue looks different from other ones. The fields are removed from the field group. You may double-click on the Update button of the field group and the fields are lost. If the issue happens with other field groups, please share your site credentials here https://metabox.io/contact/
I will take a look.
Note: we do not support older versions of MB plugins.@Kara: Please try to bypass the sanitization of the field and add only text to the field, save the post and check the issue again. Following the documentation https://docs.metabox.io/sanitization/
January 18, 2024 at 11:15 PM in reply to: ✅Show the Frontend Custom User Profile Image - within MB Admin Columns #44343Peter
ModeratorHello,
I see you have a similar question in the past https://support.metabox.io/topic/add-fallback-image-when-there-is-no-featured-image/
You can modify the admin column of the file_upload field with the filter hookrwmb_the_valueto display the image instead of using a custom admin column.January 18, 2024 at 11:00 PM in reply to: ✅datepicker not being translated when using mb_frontend_form #44341Peter
ModeratorHello,
What is the translation plugin you use to translate the text? I use WPML to translate it and it works as well on my demo site.
January 18, 2024 at 10:26 PM in reply to: ✅Display MB View shortcode in an Elementor loop template #44339Peter
ModeratorHello,
It is possible to use MB View shortcode to get the relationship of the post, add the View shortcode to the loop item and show related posts. You can use the WordPress function
get_the_ID()to get the post ID of the current post in the loop. Then get the relationship based on the post ID.For example: I have a relationship between 2 CPT: from Post to My Job, relationship ID
post-to-joband I'm using the Elementor widget Loop Grid to show a list of posts and related job posts. The sample View code:{% set current_post_id = mb.get_the_ID() %} {% set args = { post_type: 'my-job', relationship: { id: 'post-to-job', from: current_post_id } } %} {% set job_posts = mb.get_posts( args ) %} {% for job_post in job_posts %} Related Job: {{ job_post.post_title }} <br /> {% endfor %}Peter
ModeratorHello Brent,
In your case, Meta Box helps you to create custom post types and you can create more articles under that post type, like the Post of WordPress. You will need to use other plugins or custom code to show them in the frontend, search, filter, optimization ...
Instead of creating everything from scratch, you can use some Knowledge Base plugins and focus only on building content, output arciles in the fronted is easier.
https://www.wpbeginner.com/showcase/best-knowledge-base-plugins-for-wordpress-compared/January 18, 2024 at 9:40 PM in reply to: ✅Taxonomy appears to save on CPT, but turns up empty on the back-end archive #44337Peter
ModeratorHello,
Do you see the term slug in the URL when clicking on the number of posts in the term table? Like this
wp-admin/edit.php?topic=client-facing&post_type=member-content
Please check if there is another taxonomy that has the same slug
topicon your site and try to deactivate all plugins except Meta Box plugins, switch to a WordPress theme and check this issue again.Peter
ModeratorHello Luigi,
Do you mean prevent changes in the field group? If yes, there isn't an option to do that. Any administrator can edit a field group. If you don't want a user editing a field group, please set them as Editor.
January 18, 2024 at 9:21 PM in reply to: How move WordPress general posts to MetaBox Custom Posts? #44335Peter
ModeratorHello,
You can use the plugin https://wordpress.org/plugins/post-type-switcher/
to change the post type of any post.January 17, 2024 at 9:25 PM in reply to: ✅How can I pre-populate fields in new frontend submission? #44316Peter
ModeratorHello Phil,
I think it is possible. You will need to register the relationship by code to use the
selectfield and some jQuery code to pre-select the dropdown value. For example:Code to register the relationship:
MB_Relationships_API::register( [ 'id' => 'tramp_detail_to_tramp_log', 'from' => [ 'object_type' => 'post', 'post_type' => 'tramp-detail', 'field' => [ 'field_type' => 'select', ] ], 'to' => [ 'object_type' => 'post', 'post_type' => 'tramp-log', 'field' => [ 'field_type' => 'select', ] ], ] );jQuery code:
jQuery(document).ready(function($) { //get the ID from the URL and assign it to "value" $('#tramp_detail_to_tramp_log_to option[value=123]').attr('selected', 'selected'); });you can change
tramp_detail_to_tramp_log_tototramp_detail_to_tramp_log_fromdepending on the relationship side.Note: the code is for example. If you cannot complete the task, please contact an expert developer to help you in this case.
Peter
ModeratorHello Shree,
Now I see the single post team member displays as well, screenshot https://imgur.com/YhSaR1t
You can use a builder plugin like Elementor, Beaver ... to create the layout for the single post page.
Peter
ModeratorHello,
The relationship injects the
relationshipparameter to the WP Query of WordPress and its data from a custom table so I think it won't affect the performance significantly. You can try using a caching plugin to cache the query like WP Rocket or Redis Object Cache to prevent high consumption on your site.Let me know how it goes.
Peter
ModeratorHello,
I will inform the development team to consider supporting this feature in future updates.
Thank you.
Peter
ModeratorHello,
Regarding the nested condition, the development team is still working on this issue and it looks more complicated. Hopefully, it will be fixed soon.
Thank you.
January 16, 2024 at 8:49 PM in reply to: ✅MB jQuery Validation - Scroll To Highlight Error - WYSIWYG Issue #44307Peter
ModeratorHello,
No, I don't suggest using the
textareaortextfield. I mean the tabTextof the WYSIWYG field, screenshot https://imgur.com/MS48uVFIt is the input field
textareaof the WYSIWYG field, the Visual tab hides the input field and the validation doesn't jump to the input field as you see. -
AuthorPosts