Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Our supported fields
dateordatetimeuse the jQuery library datepicker to show the date and select, so it might not work with the years between BC and AD. You can follow this article to do that with the custom JavaScript code https://stackoverflow.com/questions/20508432/cannot-select-years-bcDecember 3, 2021 at 10:03 PM in reply to: ✅MetaBox\CustomTable\API::create vs MB_Custom_Table_API::create #32404Long Nguyen
ModeratorHi Didou,
Welcome to the support forum.
I think it is used for backward compatibility when creating the old custom table and custom model which also create the custom table and is defined in the file
legacy.phpclass MB_Custom_Table_API extends \MetaBox\CustomTable\API {};Long Nguyen
ModeratorHi,
It's not possible. But you can add the field value in the
<style>tag to use the dynamic CSS property value. For example<h1>{{ post.title }}</h1> <style type="text/css"> h1 { color: {{ post.colorpicker }} } </style>Long Nguyen
ModeratorHi Cees,
Can you please share some screenshots of the issue? And how to reproduce it?
December 3, 2021 at 3:45 PM in reply to: ✅Show "last update" instead of "date" on user dashboard #32395Long Nguyen
ModeratorHi AnLip,
Currently, we do not have intended to add more columns to the frontend dashboard. Just keep it simple and minimalist on the frontend. If you have basic knowledge about code, you can follow this topic to create a new custom dashboard and override its layout.
https://support.metabox.io/topic/duplicate-dashboard-shortcode/Long Nguyen
ModeratorHi,
When you call the custom function and pass the
typeto the group, you need to pass the post ID also. For exampleshowElement( 'my-type', 12345 )Or you can contact Oxygen support to get the post ID and pass it to the helper function
rwmb_meta().Long Nguyen
ModeratorHi,
The field
taxonomysets the post terms, so there will be one fieldcategorywork. If you want to save data for 3 fields, please use the field typetaxonomy_advanced.Read more on the documentation
https://docs.metabox.io/fields/taxonomy/#data
https://docs.metabox.io/fields/taxonomy-advanced/Long Nguyen
ModeratorHi,
Can you please share some screenshots in the View code and frontend display? Please try to deactivate all plugins except Meta Box and MB Extensions, switch to the standard theme of WordPress to re-check the issue.
Long Nguyen
ModeratorHi Cees,
You can try to pass the post ID to the helper function
rwmb_meta()like thisfunction showElement($type, $post_id) { $group = rwmb_meta( 'ptm_elements', '', $post_id); ... }Refer to the documentation https://docs.metabox.io/rwmb-meta/
Long Nguyen
ModeratorHi,
Please try to use this code to register the fields and preview area for a custom block
'preview' => [ 'image' => 2140, //image ID 'name' => 'William Shakespeare', 'content' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam' ], 'fields' => [ [ 'type' => 'text', 'id' => 'name', 'name' => 'Name', ], [ 'type' => 'textarea', 'id' => 'content', 'name' => 'Intro', ], [ 'type' => 'single_image', 'id' => 'image', 'name' => 'Image' ], ],Remember to create the property name as the same as the field ID and the preview area will render the template of the block with the preview value.
Screenshot https://imgur.com/RXAihQ4
December 2, 2021 at 9:53 AM in reply to: ✅Creating a custom field with value from other custom fields #32347Long Nguyen
ModeratorHi,
Yes, it might not work on the backend because the function get_queried_object_id() is used to get the post ID on the frontend. You can follow this topic to get the post ID on the backend.
https://support.metabox.io/topic/get-the-post-id-as-value/Long Nguyen
ModeratorHi Steffen,
Can you please share the code that creates the custom fields? I will check it on my end.
Long Nguyen
ModeratorHi,
Using the View shortcode in the Oxygen repeater might not work because you are inserting variables from the main query. Please read more on the documentation https://docs.metabox.io/extensions/mb-views/#main-query
If you want to get the field value, please use the helper function
rwmb_meta(), refer to this topic https://support.metabox.io/topic/error-using-cloneable-text-field/Long Nguyen
ModeratorHi,
Here is an example to show the term meta in the loop
foreach ( $terms as $term ) { $mes_butlleti= rwmb_meta( 'mes_butlleti', ['object_type' => 'term'], $term->term_id ); echo $mes_butlleti; }December 1, 2021 at 11:22 PM in reply to: ✅OSM field binding: merging two fields doesn't work #32332Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in the next update.
-
AuthorPosts