Forum Replies Created
-
AuthorPosts
-
December 14, 2023 at 11:12 AM in reply to: ✅How to querry Favorite Posts for non logged in users in Bricks Builder? #44084
Peter
ModeratorHello Sridhar,
I just understand the user ID is the author of the post in the loop. For non-logged-in users, you can get the posts from the cookie. Please take a look at the file
/wp-content/plugins/mb-favorite-posts/src/Helper.phpFor example:
$favorites = MetaBox\FavoritePosts\Helper::get_favorites(); foreach( $favorites as $post_id ) { echo $post_id; }It is noted in the documentation https://docs.metabox.io/extensions/mb-favorite-posts/#data
December 13, 2023 at 2:55 PM in reply to: Avoid duplicate selections across group members (with clone and sort) #44077Peter
ModeratorHello,
I'm afraid that it isn't supported currently. The subfield in the clone group can select all choices as the first group item.
December 13, 2023 at 2:54 PM in reply to: PHP code for Google Map to auto populate street_address, lat, lng, street #44076Peter
ModeratorHello,
Please check if you assign a string to the variable
$prefix, try to remove it andbindingsetting in the map field and check this issue again. Remove the redundant code=> 'vn'in thegeosetting also.Peter
ModeratorHello,
Please export your field group to a JSON file and share it here. I will test it on my demo site and escalate the issue to the development team.
Thank you.
Peter
ModeratorHello Charlie,
You can add whatever you want to create the taxonomy slug, but it should be unique and follow the guide of WordPress https://developer.wordpress.org/reference/functions/register_taxonomy/
and not match the reserved terms https://codex.wordpress.org/Reserved_TermsAlso, please notice that, MB Custom Post Types helps you to create the post type with UI instead of using the code register_post_type(), register_taxonomy(). You can read the WordPress documentation for more information.
December 13, 2023 at 9:27 AM in reply to: ✅How to querry Favorite Posts for non logged in users in Bricks Builder? #44070Peter
ModeratorHello,
For logged-in users, you need to pass the user ID to this code
$post_ids = get_user_meta( $user_id, 'mbfp_posts', true );to get the user meta. For example:
$post_ids = get_user_meta( 123, 'mbfp_posts', true ); //123 is the user IDYou can contact Bricks support and ask them how to get the user ID in the loop.
If you are not able to complete the task, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/December 13, 2023 at 9:22 AM in reply to: ✅How to change the background color of the Delete Icon? #44069Peter
ModeratorHello,
Because you don't have the file trash.svg in the same directory of the file that you add the CSS code. You can add the absolute URL of the icon file to the CSS code to change the background color of the delete button, like this:
.mbfp-posts .mbfp-table__delete { background: #000000 url(https://yoursite.com/wp-content/plugins/mb-favorite-posts/assets/trash.svg) no-repeat center; }Peter
ModeratorHello,
The field taxonomy_advanced sets the post meta, it does not set the post term. You should use the field taxonomy in this case to count the term in the admin area.
Peter
ModeratorHello,
Currently, we don't support loading the fields when opening a tab like that. I will inform the development team to consider supporting this feature in future updates.
Peter
ModeratorHello Sridhar,
1. The extension MB Include Exclude doesn't work with MB Relationships. The relationship box will display in all user roles.
2. Then you use the field group with the field type
user. In this case, the MB Include Exclude will work but the field typeuserdoesn't have the feature bi-directional like the MB Relationship extension. That means you need to manually select the relatededitorwhen editing thesubscriberand vice versa.
If you want to display a field group when editing a user role only, please use the optionEdited user role. Screenshot https://imgur.com/9qBei7tDecember 11, 2023 at 4:28 PM in reply to: Issue displaying several values of relationship on archive page #44056Peter
ModeratorHello Matthias,
I'm not sure if the MB Views works with Bricks to get the post ID of each post in the loop (archive page), but you can refer to the topic below to use the MB Views to create your own archive page and display all "persons" posts that related to a "kurs" post.
https://support.metabox.io/topic/the-relationship-in-view-thru-shortcode-doesnt-get-shown/For further assistance, I recommend contacting Bricks support, they maintain the compatibility with Meta Box on their end.
Peter
ModeratorHello Alyssa,
The issue here is some post types of other plugins/theme are managed by Meta Box Post Types. It was an issue in the past with the old version of MB CPT. To fix this issue, please go to Meta Box > Post Types > Remove all post types that you have not created. Do the same with taxonomy.
Let me know how it goes.
Peter
ModeratorHello,
The data saved to the database is the icon name so you should wrap it in an HTML tag to output the file URL. For example:
{% for clone in post.group_field_id %} {% set icon_name = clone.icon_field_id %} <img src="{{ mb.get_stylesheet_directory_uri() }}/assets/svg/{{ icon_name }}.svg" /> {% endfor %}December 10, 2023 at 10:14 AM in reply to: ✅Undefined array key "object_type" and Undefined array key "prefix" #44050Peter
ModeratorHello,
Please set the Location of the field group to the default Post Type: Post and recheck this issue. If it persists, you can try to follow this tutorial to increase the PHP setting
max_input_varsto fix the issue https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
Peter
ModeratorHello,
The correct path is
/home2/pbfinanc/public_html/wp-content/themes/generatepress_child/assets/svg/I add it to the option icon_dir and the icons show as well, screenshot https://imgur.com/9i1OyaD
-
AuthorPosts