Forum Replies Created
-
AuthorPosts
-
April 23, 2021 at 10:36 AM in reply to: ✅Shortcodes - integration with Gutenberg, and how to use them inside a link #27554
Long Nguyen
ModeratorHi OldGreg,
Thank you for reaching out.
-
Can you please clarify the question? Do you mean to search posts by field value?
-
There is an extension MB Blocks that helps you to create a custom block to use on the Gutenberg editor. You can create your own block and show the custom field value, follow this documentation https://docs.metabox.io/extensions/mb-blocks/
Long Nguyen
ModeratorHi,
It's not possible to add a field value to a connection post by using MB Relationships. But there is a field type
postwhich works similar to Relationships. Here are some guides for you:- Create a cloneable group
- Create subfields: post, image, text, number
Assign the meta box to the CPT Recipes so each cloneable group you can select a post Ingredient, add images, text (name), number (quantity).
Get more details on the documentation
https://docs.metabox.io/extensions/meta-box-group/
https://docs.metabox.io/fields/post/Long Nguyen
ModeratorHi,
It like the placeholder, you need to save the post first to show the field value on the frontend.
April 23, 2021 at 8:51 AM in reply to: ✅Display URL custom field as a button dynamically without using a page builder #27547Long Nguyen
ModeratorHi,
Thank you for reaching out.
After creating the custom fields with MB Builder, please follow the documentation to know how to display field value on the frontend by using the code https://docs.metabox.io/displaying-fields/
Long Nguyen
ModeratorHi Cees,
All the extra arguments should be in the array of the second argument of the helper function.
$images = rwmb_meta( 'image_header_large', ['object_type' => 'setting', 'limit' => 1], 'website' );Get more details on the documentation https://docs.metabox.io/rwmb-meta/#arguments
and refer to this topic https://support.metabox.io/topic/settings-page-image-output-stuck-in-150x150-configuration/
April 23, 2021 at 6:29 AM in reply to: ✅Display existing content in custom field on frontend? #27545Long Nguyen
ModeratorHi,
How did you get the connected posts via Relationships? Please get details on this documentation https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items
After showing the content of the connected posts, you can use the helper function to show the image of Hotels posts on Vacations posts.
Long Nguyen
ModeratorHi,
It is possible. You can follow this article to know how to customize an existing meta box https://docs.metabox.io/edit-meta-boxes/
April 23, 2021 at 6:14 AM in reply to: ✅Trying to pull the URL for a file upload from Settings Page using Shortcode #27542Long Nguyen
ModeratorHi Chris,
The
multiplesetting is always set totruefor the field typefile_upload, which means the return of the helper functionrwmb_meta()is an array so you need to loop through the array to get each element.Get more details in the documentation https://docs.metabox.io/fields/file-upload/#template-usage
April 23, 2021 at 6:04 AM in reply to: ✅Warning: The following meta box are not available: "meta-box-id". #27541Long Nguyen
ModeratorHi,
The new version of MB User Profile shows the warning when the meta box ID is not available but you are using it in the shortcode. Please just remove it.
Docs:
[mb_user_profile_register id="meta-box-id" label_submit="Register" confirmation="Your account has been created successfully."]change to:
[mb_user_profile_register label_submit="Register" confirmation="Your account has been created successfully."]April 22, 2021 at 10:52 PM in reply to: ✅Warning: The following meta box are not available: "meta-box-id". #27528Long Nguyen
ModeratorHi,
That means there is no meta box that has the ID
meta-box-id. It's the sample value for the ID of the registration shortcode. You need to replace it with your activate field group ID https://docs.metabox.io/extensions/meta-box-builder/#creating-a-field-groupThe attribute ID of the registration form is optional, you can remove it as you want.
April 22, 2021 at 10:39 PM in reply to: ✅Show text depending on the category name using MB view #27527Long Nguyen
ModeratorHi,
The Terms tab in the Insert Field section is to use when the View Type is Archive > Location: Taxonomy Archive, if it set to Single, you should use the Post tab. Screenshot https://share.getcloudapp.com/o0u6Rm7J
To get the post category, you can use the WP function get_the_category() via the proxy
mb.Here is the sample code
{% for post in query.posts %} <div class="snippet-card"> <a href="{{ post.url }}"> <h3>{{ post.title }}</h3> </a> <p>{{ post.date | date( 'd M Y' ) }}</p> <p> </p> <!-- show when the category is == to bootstrap --> {% set post_categories = mb.get_the_category( post.ID ) %} {% for post_category in post_categories %} {% if post_category.name == "bootstrap" %} <p>Bootstrap</p> {% else %} <p>No Bootstrap</p> {% endif %} {% endfor %} </div> {% endfor %}Long Nguyen
ModeratorHi,
Can you please share the code that creates the custom fields, conditional logic, and the frontend shortcode? I will check it on my local site.
Long Nguyen
ModeratorHi Jackky,
Thank you for your feedback.
I will escalate this issue and your solution to the developer team to fix it in future updates.
Long Nguyen
ModeratorHi Yumikom,
Please update the newest version of Meta Box extensions or MB AIO 1.13.8 and re-check the issue. You might also need to increase the PHP settings value by following this article https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/
April 22, 2021 at 4:20 PM in reply to: ✅Display existing content in custom field on frontend? #27509Long Nguyen
ModeratorHi,
To get the field value from Hotels posts on Vacations posts, you need to pass the third arguments to the helper function
rwmb_meta( 'image_advanced', '', $p->ID );Follow on the documentation
https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items
https://docs.metabox.io/rwmb-meta/#arguments -
-
AuthorPosts