Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Marco,
Please try to use the key
comparein the meta-query to see how it goes.'meta_query' => array( array( 'key' => 'custom_field', 'value' => $value, 'compare' => '=' ), ),Also, please ensure the post type slug
custom_type, field IDcustom_fieldare correct. Following the WordPress documentation https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parametersPeter
ModeratorHello,
Please try to use the option Before and After of the field settings to see if it helps. You can read more about that option in this topic https://support.metabox.io/topic/feature-request-simple-wrapper-element/?swcfpc=1
Peter
ModeratorHello,
I think your question needs a response from Brick builder support which you use to create the template. Meta Box doesn't support this feature.
Peter
ModeratorHello Michael,
Sorry for the late reply. You can still use the parameter
'order_by' => 'meta_value'in WP Query. The SQL query helps you to get a list of post IDs that have the specific field value stored in the custom table.February 15, 2024 at 9:49 PM in reply to: PHP 8.1 > PHP Deprecated: strpos(): Passing null to parameter #44576Peter
ModeratorHello,
Do you use the code to register the settings page with icons? I use the builder and don't see that error message. If yes, please share the code with me. I will help you to check the issue.
Peter
ModeratorHello,
In the builder, you can use the option Before and After of the field settings to create an HTML wrapper element for a/some fields. Please check these screenshots https://imgur.com/a/Tk9pBXi
Peter
ModeratorHello,
I'm not sure if the Bricks supports creating a template for subpage only. If you create the template by coding, you can use the property
post_parentof the$postobject to check if the page is a subpage (child-page). Refer to this topic https://wordpress.stackexchange.com/questions/169306/check-if-is-on-child-page-of-a-particular-pageFebruary 15, 2024 at 9:21 PM in reply to: ✅The option for Prepended permalink structure is not working #44571Peter
ModeratorHello,
That option works with the Custom Structure permalink settings, screenshot https://imgur.com/ZeU2Vw7
- If you disable "Prepended permalink structure", the post type URL will be: https://yoursite.com/cpt-slug/post-slug
- If you enable it, the post type URL will be: https://yoursite.com/abc/cpt-slug/post-slugPeter
ModeratorHello Eric,
I don't have more idea about your approach to import data to your database. Just ensure the post IDs are auto-increment (1, 2, 3 ...) when importing data and you have a backup of the database before doing that.
Peter
ModeratorHello Doug,
There isn't an option to set up the icon for the setting tab in the builder. I will inform the development team to consider supporting this feature in future updates.
Peter
ModeratorHello,
The filter hook
rwmb_outer_htmlis applied to the field and it generates a closing tag automatically. If you want to add a class to the field group (meta box), please use theclasssetting.
Following the documentation https://docs.metabox.io/creating-fields-with-code/February 13, 2024 at 11:06 PM in reply to: ✅Custom table field to have same value as post title #44558Peter
ModeratorHello,
I think it is possible. You can create a new field group for the field
product_nameand save data to the custom table. Then use the actionrwmb_after_save_postto hook a callback function to savepost_titlefield value to the custom table.Following the documentation
https://docs.metabox.io/actions/rwmb-after-save-post/
https://docs.metabox.io/extensions/mb-custom-table/#updateFebruary 13, 2024 at 10:56 PM in reply to: Taxonomy Slug in Metabox and WordPress Settings different #44557Peter
ModeratorHello,
After changing the CPT, Taxonomy slug, the posts, and terms created are still saved in the database. They are just not displayed in the admin area. You can use a plugin to switch CPT, Taxonomy for them.
https://wordpress.org/plugins/post-type-switcher/
https://wordpress.org/plugins/taxonomy-switcher/Peter
ModeratorHello,
Can you please share the code that you are using to customize the meta box settings? Please try to add the code to the file functions.php in the theme folder and recheck this.
Peter
ModeratorHello,
I'm afraid that there isn't a way to render the third-party shortcode when using Meta Box shortcode without bypassing HTML filtering. It helps you to prevent security issues so please be more careful to use the shortcode.
-
AuthorPosts