Forum Replies Created
-
AuthorPosts
-
September 5, 2020 at 3:43 PM in reply to: Display image captions in Image Advanced on the back end #21676
Long Nguyen
ModeratorHi,
There are many fields of the image beside the caption - alt text, title, description, file URL even custom fields for the attachment so the field
image_advancedand other image fields only support to show the thumbnail when editing post. The user can edit the image's fields by clicking to the pen when hovering the image https://share.getcloudapp.com/4gu985n4.Long Nguyen
ModeratorSolved in MB Settings Page v2.1.3, MB AIO will be released later.
- $settings_pages:
'style' => 'boxes' - $meta_boxes:
'style' => 'seamless'
Long Nguyen
ModeratorHi,
See my screen record https://www.loom.com/share/ecf36039acaa4d16b89f82ea34442fc7.
The post duplicated includes the field value as well. You can also try to use other duplicate plugins by following this article https://www.hostinger.com/tutorials/how-to-duplicate-wordpress-page-or-post.
Long Nguyen
ModeratorHi,
This problem is so weird, please follow this guide to know how to create the staging site https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/.
Then share the credentials (Admin site and FTP account) via this form https://metabox.io/contact/. I will check it out.
Long Nguyen
ModeratorHi,
As I understand, you want users can create a post type Meeting and post type Zoom on the frontend via the Frontend Submission form.
Yes, the extension Frontend Submission helps users create any post (CPT) in the frontend, but it can only create one post type for each form. I think you can create Zoom posts before (predefined) then show it in the form (create post Meetings) as a select box with the field
postor use MB Relationships.
https://docs.metabox.io/fields/post/
https://docs.metabox.io/extensions/mb-relationships/Long Nguyen
ModeratorHi,
The plugin Post Duplicator will help you to duplicate a post/post type and custom fields https://wordpress.org/plugins/post-duplicator/.
Long Nguyen
ModeratorHi,
The field
groupis a special field, it always saves the data in a serialized string. If you use the setting clone_as_multiple, instead of showing all data in a string, it will save data in more rows for each clone.Use clone_as_multiple:
a:1:{i:0;a:2:{s:11:”rdo_staff_D”;s:7:”armador”;s:12:”rdo_staff_DH”;s:1:”9″;}} a:1:{i:0;a:2:{s:11:”rdo_staff_D”;s:7:”armador”;s:12:”rdo_staff_DH”;s:1:”9″;}}Not use:
a:2:{i:0;...; i:1...}For more information, please follow this documentation https://metabox.io/introducing-clone-as-multiple-feature/.
Long Nguyen
ModeratorHi,
On my local site, the location still shows pages as well, see https://share.getcloudapp.com/geuzBq7B.
Please try to deactivate all plugins except Meta Box and MB extensions then check the issue again. If it still happens, please take some screenshots, open the Console Tab of the browser to check the error notice and share it here.
Long Nguyen
ModeratorHi,
Thank you for your idea, we've marked this feature on the roadmap. Currently, you can use the plugin Admin Columns and their addon Meta Box Integration to edit the field in Admin Columns.
Long Nguyen
ModeratorHi,
With the custom query, we have to use the variable of the post object. Example:
- Title: post.post_title
- Excerpt: post.post_excerpt
- Thumbnail: get the post thumbnail by post ID https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/.
See more in this documentation https://developer.wordpress.org/reference/classes/wp_post/.
In the code set args, the field should be
slug(term slug is rotterdam) instead oflocation, see more in this documentation https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters.Long Nguyen
ModeratorHi,
Thanks for your idea, I'm going to create a feature request to support style seamless (no-box) in the setting page for specific meta boxes.
Long Nguyen
ModeratorHi,
Could you please take some screenshots when creating a new post type base_jobs in the backend?
September 3, 2020 at 11:31 AM in reply to: ✅How to assign a value to a taxonomy without showing it in the form in front-end? #21610Long Nguyen
ModeratorHi,
If you assign the taxonomy to the page, we can get the term of the page with the function get_the_terms() and remove the meta box id in the shortcode, only change the snippet code to this.
add_action( 'rwmb_frontend_after_save_post', function( $post ) { // Get the page ID $current_page_id = get_queried_object_id(); // Get list terms of the page, taxonomy "location" $term_ids = get_the_terms( $current_page_id, 'location' ); if( is_array( $term_ids ) ) { // Set first term for post type wp_set_object_terms( $post->post_id, $term_ids[0]->term_id, 'location' ); } } );Screen record: https://www.loom.com/share/ac631d8123f945efb8f7ffc66f9c163b
If the location still does not set for the post type Work Place, please check the code is added to the file functions.php or use the plugin Code Snippets like my demo.
Long Nguyen
ModeratorHi,
Understand the problem, you are using the shortcode to display the view on a page but the view has set to the location archive. Use the location archive that means it only shows on the archive page as I mentioned above.
go to CPT > Taxonomy > Edit a term > View taxonomy, to get the link of the archive page. For example, the WooCommerce Product category https://share.getcloudapp.com/jkuZOJdY
You can also follow this documentation to know about the archive page https://developer.wordpress.org/themes/basics/template-hierarchy/.
If you want to create a page that shows the post with specific taxonomy, please choose the location custom, then use the custom query with the function get_posts() to show posts. Here is the sample code:
{% set args = { post_type: 'post', posts_per_page: 5, tax_query: [ { taxonomy: 'category', field: 'slug', terms: 'block' } ] } %} {% set posts = mb.get_posts( args ) %} {% for post in posts %} {{ post.post_title }} {% endfor %}See my screenshot https://share.getcloudapp.com/rRu7m0p5.
September 3, 2020 at 9:40 AM in reply to: ✅Need help with datepicker on woocommerce checkout page #21608Long Nguyen
ModeratorHi,
You can combine the plugin Checkout editor and Meta Box to build the setting for the client with more customization code.
- Create the checkbox field to show the option enable/disable.
- Check the day in a week by following this article https://thisinterestsme.com/php-get-day-of-the-week-from-date/ and check the checkbox field value.
- If both of it pass the condition, you can add a custom CSS code to hide/remove the Checkout datepicker field on the checkout page.
Hope that makes sense.
- $settings_pages:
-
AuthorPosts