Forum Replies Created
-
AuthorPosts
-
September 4, 2023 at 6:42 PM in reply to: ✅Custom Field content no longer editable/viewable in WordPress admin area #43129
Peter
ModeratorThanks for your feedback.
I will share this with the development team to improve GUI of the builder.
Peter
ModeratorHello,
I see the
attribute()function returns the value correctly on my demo site. You can use the WordPress functionget_option()as you do or the Meta Box helper functionrwbm_meta()to get a settings page value. Refer to the documentation https://docs.metabox.io/extensions/mb-settings-page/#getting-field-valueSeptember 4, 2023 at 6:23 PM in reply to: How to display parent custom field in Views Shortcode for child post #43127Peter
ModeratorHello,
You said the field ID is
cover_corsobut you added the field ID in your code:cover-corso. The attribute of thecatalog_post, notpost. And I also do not see the code to output the image in the catalog post loop.If you are not able to complete the task, please contact us here https://metabox.io/contact/
Our development team will help you with an extra fee.August 31, 2023 at 11:09 PM in reply to: How to display parent custom field in Views Shortcode for child post #43109Peter
ModeratorHello,
So you can use another query to get the related catalog post from the session post ID. For example:
{% for post in posts %} {# get the course catalog post #} {% set catalog_args = { post_type: 'course_catalog', relationship: { id: 'catalog-to-session', to: post.ID } } %} {% set catalog_posts = mb.get_posts( catalog_args ) %} {% for catalog_post in catalog_posts %} {# get the catalog post image and other info #} {% endfor %} {% endfor %}You will need to change the post type and relationship ID with your own, just for example.
August 31, 2023 at 10:59 PM in reply to: ✅get_users() not showing the correct order of relationship #43108Peter
ModeratorHello,
Thanks for your feedback.
There is an issue with the order of connected users when displaying them in the frontend. I've escalated this issue to the development team to fix it. I will let you know when I have any information.
Peter
ModeratorHello Joe,
If you are on the single product page, you can use the function get_the_title() to get the current product title, assign it to a variable and output it in your code. For example:
$current_product_title = get_the_title(); $connected = new WP_Query( [ ] ); ...Peter
ModeratorHello,
I see you use the function
get_post_meta()to get the custom field value, so you can use the functionget_option()to get the option value (settings page).Or use the helper function
rwmb_meta(), follow the documentation https://docs.metabox.io/extensions/mb-settings-page/#getting-field-valueAugust 31, 2023 at 10:21 PM in reply to: ✅Custom Field content no longer editable/viewable in WordPress admin area #43105Peter
ModeratorHello,
You can hover over the long-space area to read the description and click on it to open the field settings, screenshot https://imgur.com/K3DQj0V
If it does not work, please export the field group to a JSON file, I will import it on my demo site and check the issue. Refer to the documentation
https://docs.metabox.io/extensions/meta-box-builder/#export--importAugust 31, 2023 at 10:08 PM in reply to: Issue with Relationship not displaying connected posts #43104Peter
ModeratorHello,
Can you please share a screenshot of the relationship settings? Are the connected posts saved properly?
Peter
ModeratorHello Harald,
It is a setting in the builder only, works as its name so there isn't documentation about this. I can see the issue on my demo site and I've escalated it to the development team to fix it in the next update.
Peter
ModeratorHello,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a closer look.Peter
ModeratorHello,
I do not see that issue on my demo site. The constant
RWMB_DIRshould return the path to themeta-boxplugin folder/wp-content/plugins/meta-box/.
You can output the constantRWMB_DIRon your site and see what displayed
echo RWMB_DIR;If it returns
/wp-content/plugins/meta-box/js/then it is the wrong path.August 30, 2023 at 10:33 PM in reply to: Issue with Relationship not displaying connected posts #43091Peter
ModeratorHello there,
After selecting some connected posts between Developers and Project and reloading the page, you can see the selected posts then the relationship works properly.
If you have trouble when outputting the relationship post with Bricks Builder, please contact Bricks support to get further assistance. The compatibility feature is maintained on their side.August 30, 2023 at 10:24 PM in reply to: How to display parent custom field in Views Shortcode for child post #43090Peter
ModeratorHello,
How do you set a Course Catalog as a parent post of a Course Session? Do you use the extension MB Relationships?
Peter
ModeratorHello Johnson,
How do you output the select field value? When using the loop to output the value, you can add a space between items. For example:
$values = rwmb_meta( 'my_field_id' ); foreach ( $values as $value ) : echo $value . ' '; endforeachRefer to the documentation https://docs.metabox.io/fields/select/
-
AuthorPosts