Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Please update the new version of the plugin Meta Box v5.3.2 to fix this issue.
Long Nguyen
ModeratorHi,
Because the function
dynamic_sidebar()returns the ID number of the sidebar so when we echo this function, it will show the ID after. Please add this code to the file functions.php in the child theme folder to remove the ID of the sidebar.add_filter( 'dynamic_sidebar_has_widgets', function( $did_one, $index ) { $index = ''; return $index; }, 99, 2 );Long Nguyen
ModeratorHi,
The field
dateonly helps you to pick a date via friendly UI, it is impossible to change the date automatically.Regarding the view template, you can query to show the event base on the date field but query posts by custom fields is not recommended.
https://docs.metabox.io/fields/date/#template-usageI recommend using the plugin The Events Calendar to create the event calendar for a better experience.
Long Nguyen
ModeratorHi,
Currently, the conditional logic of this extension only supports the option "Is Set" for the Settings Page Field. I'm going to create a feature request to support another option "Is Not Set" like the post meta.
Thank you.
Long Nguyen
ModeratorHi,
I'm going to check it out and let you know later.
Thank you.
Long Nguyen
ModeratorHi Eddy,
If you use the option
Only the post content area, it will render the view in each post content of the archive page.If you want to build your own archive page with the option
The layout between header and footer, you can use the functiondynamic_sidebar()to show the sidebar.<div class="gridContainer gridContainer content"> <div class="row"> <div class="col-xs-12 col-sm-8 col-md-9"> Content of archive page </div> <div class="sidebar col-sm-4 col-md-3"> <div class="sidebar-row"> {{mb.dynamic_sidebar('sidebar-1')}} </div> </div> </div> </div>See more in my screen record https://www.loom.com/share/be68732059e5426b99266e6295d1d53a.
Long Nguyen
ModeratorHi,
Your code works as well, see the screen record again https://www.loom.com/share/1b58e921914348eeac49aefe4fb5610e.
add_filter( 'rwmb_meta_boxes', 'kie_jobs_aufgaben_metabox' ); function kie_jobs_aufgaben_metabox( $meta_boxes ) { $prefix = 'kie_'; $meta_boxes[] = array( 'id' => 'aufgaben', 'title' => esc_html__( 'Aufgaben', 'kie-stellenboerse' ), 'post_types' => array( 'post' ), 'context' => 'after_title', 'priority' => 'high', 'autosave' => true, 'fields' => array( array( 'name' => 'Aufgaben', 'id' => $prefix . 'aufgaben', 'type' => 'wysiwyg', 'add_to_wpseo_analysis' => true, 'class' => 'kie_metabox_textarea', 'raw' => false, 'options' => array( 'textarea_rows' => 4, 'teeny' => true, ), ), ), ); return $meta_boxes; } $meta_value = '<h2 style="color: green">Test HTML tag</h2>'; update_post_meta( 4, 'kie_aufgaben', wp_kses_post( $meta_value ) );Long Nguyen
ModeratorHi Eric,
You can use the option "Is Set" to show a section. That means if the field has any value (not empty) it will match with the condition Is Set, just like the field
textyou can type any text to the field.If you use the option "Equals" the value of the field must have exactly the value in Equals to show the section.
Long Nguyen
ModeratorHi Martinsen,
If you are using the extension MB Builder to create the field, you don't need to copy the code generated then add to the theme file. After creating the field with MB Builder and Save, it helps you implement the code automatically which means the field will display when editing the post.
If you still want to use the code, you have to activate the extension MB Group for groups to work. For more information, please follow the documentation.
https://docs.metabox.io/extensions/meta-box-builder/
https://docs.metabox.io/extensions/meta-box-group/Long Nguyen
ModeratorHi,
When opening the Beaver conditional logic, you can scroll down and select the option Settings Page Field then choose the setting page and type the field ID. See more in my screen record https://www.loom.com/share/7da0e7f10b184985990ed90ea49c7fb1.
Regarding the settings code, I recommend adding it to the file functions.php in the child theme folder or use the plugin Code Snippets to avoid losing this code when updating the new version of the theme.
Long Nguyen
ModeratorHi,
The extension MB Relationship does not support to track the change, I think you can use the field
postand the feature Revision of WordPress to track the change of fields. See my screen record https://www.loom.com/share/2aa2835d1ffc4ac0b23f9f727b35d63c.Please follow this documentation to enable the Revision for the custom field https://docs.metabox.io/extensions/mb-revision/.
Long Nguyen
ModeratorHi,
The field
image_advancedonly supports to add the new image to the end of the list images. Thanks for your idea, I'm going to create a feature request to support adding the new image to the first of list images.Long Nguyen
ModeratorGreat!
Let me know if you have any questions.
Long Nguyen
ModeratorHi,
The relationship creates a different meta box and it does not show in a field group with other fields. I think you can use the field
postto show the list post type, for more information, please follow this documentation https://docs.metabox.io/fields/post/.Long Nguyen
ModeratorHi,
After creating a field
WYSIWYG, you should use the functionupdate_post_meta(). It updates the HTML content in the tab Text as well. See my screen record https://www.loom.com/share/d1f5a83412454a999316b6e4f4bef292.Could you please share the code which creates the field and HTML content updated if the problem still happens?
-
AuthorPosts