Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
For tracking the issue easier, I recommend using the function
get_posts()to get posts related to a user.{% set args = { post_type: 'provider', relationship: { id: 'user-provider', from: userID } } %} {% set posts = mb.get_posts( args ) %} {% for post in posts %} ... {% endfor %}The main issue here is you need to pass the correct userID to the arguments to get related posts. Please read more in the documentation https://docs.metabox.io/extensions/mb-relationships/#posts
https://docs.metabox.io/extensions/mb-views/#custom-queryPeter
ModeratorHello,
I do not see that issue on my demo site. Can you please test this issue with a clean installation of WordPress and Meta Box? You can also try to deactivate all plugins except Meta Box, MB AIO, switch to a standard theme of WordPress and see how it goes.
Peter
ModeratorHello Mark,
I do not receive your site information. Can you please resend it?
Also, with the new version of Meta Box AIO 1.20.2 or MB Frontend Submission 4.3.0, you can use the block
[Meta Box] Submission Formto create a frontend form with the Gutenberg block.Peter
ModeratorThank you for sharing the solution.
Peter
ModeratorHello,
The different fields between Google Map and Open Street Map are listed in the section "Other Fields". Both map should use the address field with the ID
addressor something withaddressprefix likeaddress_somethingoraddress_1234. I've changed the field ID to address and the address fields are populated properly, screenshot https://monosnap.com/file/K7RQ7lMeGQSbWP1ySdj0UighcIQuytPeter
ModeratorHello,
Not sure if it can help but I think you can try to use the PHP function array_filter() to filter the value in an array.
https://stackoverflow.com/questions/45778382/how-can-i-filter-values-from-an-array-and-then-sort-them-by-a-custom-orderFurthermore, please contact Bricks builder support to get advanced help.
Peter
ModeratorHello Mark,
Can you please generate the PHP code of the field group assigned to that CPT or you can export the field group to a JSON file and share it here?
There could be an issue with the options of a select field.Peter
ModeratorHello,
Please refer to this topic to apply the SVG icon for the CPT
https://support.metabox.io/topic/custom-post-type-svg-icon-base64-encoded/#post-32132Peter
ModeratorHello,
I understand the question. Unfortunately, Meta Box does not support displaying other field values in the select box, only the post (object) title will be displayed.
Peter
ModeratorHello,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a closer look.Peter
ModeratorHello,
Thanks for sharing the solution. Really appreciate.
Peter
ModeratorHello,
I run your code on my local site but do not see that issue. It is possible the template in the plugin is executed before the code that registers the meta box then there is no meta box to render.
April 13, 2023 at 8:12 PM in reply to: ✅Is it possible to select range date with date picker ? #41482Peter
ModeratorHello,
Yes, I think you can use two date picker fields to set the start and end date. Then you will need to query posts by the field value to display event posts in the range date.
Peter
ModeratorHello Rich,
Sorry, I don't understand the question clearly. Can you please give more details or share some screenshots of this?
Peter
ModeratorHello,
It's the taxonomy archive page on the frontend. You can go to Meta Box > Post Types > Edit CPT > Advanced tab > Enable option "Exclude from search" to exclude the CPT.
Or follow this topic to use the code https://wordpress.stackexchange.com/questions/390635/how-do-i-exclude-posts-from-custom-taxonomy-from-a-custom-post-type-archive -
AuthorPosts