Forum Replies Created
-
AuthorPosts
-
April 21, 2022 at 9:44 PM in reply to: ✅comma separator between cloned textarea or WYSIWYG field #35755
Long Nguyen
ModeratorHi Hartsook,
The Kadence block is outputting the field value so please contact their support to ask for help with this case. If you use the code, you can remove the separator as well.
Long Nguyen
ModeratorHi,
The view works as a template, not a function file so it's not possible to enqueue script with a view like that. You can use the
<link>tag to load the script, style file in the Template tab.<link rel="stylesheet" href="mystyle.css"> View contentLong Nguyen
ModeratorHi Melanie,
I think the issue relates to the option Advanced Location Rules under the Settings tab in your field group, screenshot https://monosnap.com/file/TDtNc1d0jVO4o1WM3wZwukV5cokv9k
Please remove the condition and re-check this issue.
Long Nguyen
ModeratorHi,
There are some potential issues that increase the loading time or break the page. Mostly, it is the hosting is not powerful enough to respond to all browser requests at the same time. You can try to use a few
postfields and re-check the issue. If the loading time is good, you can contact the hosting support to ask for help with this issue.April 21, 2022 at 9:00 PM in reply to: ✅Collapsible group field toggle arrow is upside down on load #35750Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in the next update.
Long Nguyen
ModeratorHi,
Thanks for your feedback.
The default subfield value does not work with the cloneable group and under the group settings. But you can use the subfield setting to set the default value. Like this
[ 'id' => 'block_cross_linking_cards', 'name' => 'Cards', 'type' => 'group', 'clone' => 'true', 'sort_clone' => true, 'collapsible' => true, 'default_state' => 'collapsed', 'group_title' => ['field' => 'block_cross_linking_cards_title'], 'add_button' => '+ Add Card', 'fields' => [ [ 'id' => 'block_cross_linking_cards_style', 'name' => 'Card style', 'type' => 'select', 'options' => [ 'card' => 'Card', 'image-background' => 'Image Background', ], 'std' => 'card' //here ], ], ],April 21, 2022 at 3:21 PM in reply to: ✅Second block instance is inheriting conditional logic from first block instance #35743Long Nguyen
ModeratorHi,
Thanks for your feedback.
The extension MB Conditional Logic uses jQuery to check the field ID and value to match the condition. So if there are two or more IDs that are the same on a page, the condition will apply to all blocks or not work properly. You can move the edit mode to the sidebar to avoid this issue.
Long Nguyen
ModeratorHi,
The field value is saved to the database so it wouldn't be lost when you change the way to register the custom field (code or builder). Refer to the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
Long Nguyen
ModeratorHi,
It's a weird issue. Can you please add your code to the post template file in a theme and deactivate Oxygen builder to see if it works?
Long Nguyen
ModeratorHi,
The default value
stdhelps you to show the value in appearance, this value is not saved to the database before publishing the post. Please read more here https://docs.metabox.io/creating-fields-with-code/#why-does-not-my-default-value-workLong Nguyen
ModeratorHi Marco,
Please use the code to register the custom block and translate the field label with WPML. Refer to this topic https://support.metabox.io/topic/unable-to-translate-cpt/
Long Nguyen
ModeratorHi Fernando,
You can use the WordPress function
get_the_ID()to pass the post ID to the helper functionrwmb_the_value()in the Oxygen repeater. For example:rwmb_the_value( 'mapa', $args, get_the_ID() );Read more on the documentation https://docs.metabox.io/functions/rwmb-the-value/
Long Nguyen
ModeratorHi Cees,
Here is the example to use the setting
query_argswhen creating a relationshipMB_Relationships_API::register( [ 'id' => 'route-to-highlight', 'from' => [ 'object_type' => 'post', 'post_type' => 'route', ], 'to' => [ 'object_type' => 'post', 'post_type' => 'highlight', 'field' => [ 'query_args' => [ 'tax_query' => [ [ 'taxonomy' => 'soort', //taxonomy slug 'field' => 'slug', 'terms' => 'kunst', //term slug ], ], ] ] ], ] );Read more on the documentation https://docs.metabox.io/extensions/mb-relationships/#using-code
Long Nguyen
ModeratorHi Jason,
You can just add the CSS, JS code to the view editor to run it on a page/post when you insert the view shortcode. Screenshot https://monosnap.com/file/7fmXTsK6wCfTTRI6qsJthlm8lDp5yq
Long Nguyen
ModeratorHi Yasmine,
To output the connected posts to a user, please follow this documentation https://docs.metabox.io/extensions/mb-relationships/#posts
Here is the example code:
add_shortcode( 'show_user_post_related', function() { $author_id = get_post_field( 'post_author', get_queried_object_id() ); if ( empty( $author_id ) ) { return 'No author ID'; } $connected = new WP_Query( [ 'post_type' => 'university', 'relationship' => [ 'id' => 'university_to_user', 'to' => $author_id, // You can pass object ID or full object ], 'nopaging' => true, ] ); $output = ''; while ( $connected->have_posts() ) : $connected->the_post(); $output .= the_title(); endwhile; wp_reset_postdata(); return $output; } ); -
AuthorPosts