Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
I've replied to your question on this topic https://support.metabox.io/topic/update-combine-custom-post-with-details-from-another-post-type
so please discuss it there and I will mark this topic as Resolved.July 26, 2022 at 1:01 PM in reply to: ✅Update - Combine Custom Post With Details from another Post Type #37199Long Nguyen
ModeratorHi,
1. Unfortunately, there is no way to remove the meta box title in this case. You can use this custom CSS code in Appearance > Customize > Additional CSS, to hide it
.rwmb-meta-box h2 { display: none; }I will inform the development team to consider supporting this case in future updates.
2. It looks like there is an issue with your database. I've tried to add a new table name in the field group to save the field value to another table but it is not created in the database. You can try to contact your hosting support to ask for help or save the field value to the standard table of WordPress (aa_usermeta).
July 26, 2022 at 12:38 PM in reply to: Are sortable, cloneable groups with cloneable fields supported yet? #37198Long Nguyen
ModeratorHi Tim,
The demo video above is a case with a cloneable group and I see it works as your expectation in your video. You can also make the group sortable to sort the clone on the frontend as well.
Let me know if it does not work on your end.Long Nguyen
ModeratorHi Thomas,
If you get the PHP code of the field group and put it to the file functions.php of the theme or a plugin for implementation, you should use the PHP template (render_template setting) or PHP function (render_callback setting) to display the block.
https://docs.metabox.io/extensions/mb-blocks/#render_callbackJuly 25, 2022 at 9:56 PM in reply to: Report card for students, automatic calculation and teacher input #37184Long Nguyen
ModeratorHi Jorge,
Yes, it is possible to filter posts by some parameters. You can follow this documentation to know how to use the WP Query (function
get_posts()) in View https://docs.metabox.io/extensions/mb-views/#running-php-functions
And please note that, it's really hard to query posts by subfield value (in a group). Please use the top field if you want to query posts by custom field value.Long Nguyen
ModeratorHi,
Please try to deactivate the plugin Oxygen builder and use the code to output the field value then recheck this issue. Read more on the documentation https://docs.metabox.io/fields/wysiwyg/
Let me know how it goes.
July 25, 2022 at 12:53 PM in reply to: Wrong "Category" items showing up in a totally different CPT #37178Long Nguyen
ModeratorHi,
Can you please share some screenshots of the issue on your site? It is possible that the taxonomy
categoryis assigned to two CPTeventsandnotices.Long Nguyen
ModeratorHi Cynthia,
You can use the setting
query_argsand pass the term ID to the argumentparentto get child terms. For example:[ 'id' => 'project_cat', 'title' => 'Project Categories', 'type' => 'taxonomy_advanced', 'taxonomy' => 'project_cat', 'ajax' => true, 'query_args' => [ 'parent' => 10, //change 10 to the term website ID ], ],Read more on the documentation https://docs.metabox.io/fields/taxonomy-advanced/
https://developer.wordpress.org/reference/classes/wp_term_query/__construct/If you are using the builder, please follow this documentation https://docs.metabox.io/extensions/meta-box-builder/#dot-notation
July 25, 2022 at 12:33 PM in reply to: ✅Image fields not carried over when duplicating a post #37176Long Nguyen
ModeratorHi,
Here is the code that works on my local site
add_action( 'init', function() { ... }, 99 );$images_upload = get_post_meta( $post_id, 'card_images' ); foreach ( $images_upload as $single_image ) { add_post_meta( $new_post_id, 'card_images', $single_image, false); }Use the action
initwith priority 99 (later than 20) to make sure the helper functions are loaded before. Or use the WP functionget_post_meta()to get raw value (image IDs),July 25, 2022 at 12:09 PM in reply to: ✅Can't get text field from settings to render inside a view #37175Long Nguyen
ModeratorHi,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a closer look.Long Nguyen
ModeratorHi,
Please update the hyphen in the relationship ID by underscore characters
venue_to_userand re-check this issue. Let me know how it goes.Long Nguyen
ModeratorHi,
Please get the PHP code of the field group in the builder and share it here. I will help you to check the issue. Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
July 24, 2022 at 10:22 PM in reply to: ✅FacetWP does not understand MetaBox Google Maps field #37161Long Nguyen
ModeratorHi,
It does not work because the map field is registered and saved value before the text field will be processed. Please change the hook name to
rwmb_id_of_text_field_after_save_fieldand re-check this issue.Long Nguyen
ModeratorHi Thomas,
1. Using the PHP template or "code" area in the builder are the same purpose to render the template for the block. The difference is you need to use Twig code in the "code" area. Please read more here https://docs.metabox.io/extensions/mb-views/#twig
2. You need to get the post ID from the selected value first, suppose that the member is a post field https://docs.metabox.io/fields/post/
{% set member_id = mb.mb_get_block_field( 'member' ) %}then get other field values associated with that member ID
{{ mb.rwmb_meta( 'member_field', '', member_id ) }}July 24, 2022 at 7:15 AM in reply to: Clear the option record of the column "text", I have new options #37157Long Nguyen
ModeratorHi,
The old options is the autofill option (cache) of the browser, you can see a line separating the options of the field and cache of the browser https://imgur.com/NS9YRBU
You can follow this solution to know how to clear it https://support.iclasspro.com/hc/en-us/articles/218569268-How-Do-I-Disable-or-Clear-AutoFill-AutoComplete-Information-
-
AuthorPosts