Forum Replies Created
-
AuthorPosts
-
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 #44337
Peter
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.January 15, 2024 at 10:34 PM in reply to: Taxonomy field:new_term opens modal to taxonomy adminscreen.Way to disable this? #44300Peter
ModeratorHello,
Unfortunately, there isn't an option to use the old way to add terms. If you restrict access to the dashboard from frontend, you can consider disabling this option.
Peter
ModeratorHello,
i can get only one of the conditionals to work, it is obvious based on your condition.The field
inherit_event_contact_details_from_descis hidden whenpage_templateistemplate-desc.php:[ 'id' => PREFIX . 'inherit_event_contact_details_from_desc', 'name' => __('Kontakt überschreiben', NAME_SPACE), 'type' => 'switch', 'style' => 'rounded', 'on_label' => __('Ein', NAME_SPACE), 'off_label' => __('Aus', NAME_SPACE), 'label_description' => __('Überschreibt die Kontakdaten der Termin-Beschreibung', NAME_SPACE), 'hidden' => [ ['page_template', 'template-desc.php'] ] ]If you set the condition of the field
event_link_textdisplayed when the fieldinherit_event_contact_details_from_descistrueandpage_templateistemplate-desc.php, one condition will not work.
Because ifpage_templateistemplate-desc.php, the fieldinherit_event_contact_details_from_descis hidden and you cannot switch on/off the field.Also, please notice that the nested conditional logic is not working correctly. That means if the field
event_link_textis shown/hidden based on the fieldinherit_event_contact_details_from_descvalue and the fieldinherit_event_contact_details_from_descis shown/hidden based on another condition, the condition of the fieldevent_link_textwill not work correctly. Refer to this topic https://support.metabox.io/topic/or-logic-not-working/January 15, 2024 at 10:04 PM in reply to: ✅MB jQuery Validation - Scroll To Highlight Error - WYSIWYG Issue #44298Peter
ModeratorHello,
Currently, Meta Box supports scrolling to the input field if the setting
required=trueand the field is empty. For the WYSIWYG field, the input fieldtextareawill display if you switch to tab Text and you can see the browser scrolling to the field as well.Peter
ModeratorHello,
No, Meta Box
filefield only works with the WordPress root folderABSPATH. It doesn't work if you define the folder outside of WordPress root.Peter
ModeratorHello,
This is an interesting question. Currently, we don't have a setting to get posts that don't have a connection. I suggest you try to create a custom code to do that:
1. Create an SQL query: get the post ID from the column
fromortobased on the relationship ID. You will have an array of posts that have a connection.2. Create a WP Query and pass the array to the argument
post__not_in. Read more about this argument in the documentation
https://developer.wordpress.org/reference/classes/wp_query/#post-page-parametersPeter
ModeratorHello Erik,
That means the created posts and field value in the admin area are removed automatically, is that right? Can you please share some screenshots of the issue?
You can copy your site to a staging site, then deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme and let me know how it goes. -
AuthorPosts