Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorExactly, the weird strings are
s:4344:"at the first and";at the last. Remove it and update the meta value in the database then the field works well.Long Nguyen
ModeratorHi,
Could you please share the code to create the fields? And make the screen record again?
I only see the one black color https://cl.ly/31f4f4dae946
Long Nguyen
ModeratorHi,
You can create two fields
textandtime, assign to the CPTgroepen.Then use the filter
the_titleto show the field value as the title of CPT. Follow my sample codeadd_filter( 'the_title', 'change_post_title_by_field_value', 99, 2 ); function change_post_title_by_field_value( $title, $post_id ) { if( get_post_type( $post_id ) == 'groepen' ) { $title = rwmb_meta( 'text' ) . ' - ' . rwmb_meta( 'time' ); } return $title; }see my screen record https://www.loom.com/share/1ecaa40b23d749f7b8315c1362bd602c
and this documentation https://developer.wordpress.org/reference/hooks/the_title/Long Nguyen
ModeratorHi,
We use our own custom code to build the page and it is private. You can follow this guide to create a custom client dashboard base on WordPress Dashboard with a few plugins
https://kinsta.com/blog/wordpress-custom-dashboard/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,
I'm using the sample code from the documentation
'fields' => array( array( 'name' => 'Logo', 'id' => 'logo', 'type' => 'file_input', ), array( 'name' => 'Layout', 'id' => 'layout', 'type' => 'image_select', 'options' => array( 'sidebar-left' => 'https://imgur.elightup.com/Y2sxQ2R.png', 'sidebar-right' => 'https://imgur.elightup.com/h7ONxhz.png', 'no-sidebar' => 'https://imgur.elightup.com/m7oQKvk.png', ), ), array( 'name' => __( 'Backup & Restore', 'ditty-news-ticker' ), 'type' => 'backup', ), ),and the field type
backupworks as well, see my screen record https://cl.ly/303ff96d3190.Could you please try to clear the cache and check this field again?
Long Nguyen
ModeratorHi there,
Could you please let me know which the Client Dashboard? Is the My Account page?
Long Nguyen
ModeratorIf the meta key
popups__addis not in the database, you can just save any value when editing the homepage then update in the database with your old value
https://pastebin.com/G34dHJSaMaybe a third-party plugin or something else has changed the value of the meta key. For clone group/field, the value is an array and saved into the database with the format
a:8:{i:0;s:31: ...}while it is wrong formats:15496:"s:15485:"s:15474:"s:15463:"s:15452:"s:15441:"s:15430:"s:15419:"s:15408:"s:15397:"s:15386:"a:7:{i:0...}so I've removed the string
s:15496:"s:15485:"s:15474:"s:15463:"s:15452:"s:15441:"s:15430:"s:15419:"s:15408:"s:15397:"s:15386:" ... ";";";";";";";";";";";For more information, please follow this article
https://wpengine.com/support/wordpress-serialized-data/Long Nguyen
ModeratorHi,
Thank you. I'm going to check it out and let you know later.
Long Nguyen
ModeratorHi Joe,
Could you please share the code to create the Settings page and Backup & Restore field type? I will take a closer look and check it on my end.
Long Nguyen
ModeratorHi Steve,
Could you please clarify the question? Or let me know the purpose of this.
You can show the post ID by function
the_ID()in the loop orget_queried_object_id()in a single post/page.
https://developer.wordpress.org/reference/functions/the_id/
https://developer.wordpress.org/reference/functions/get_queried_object_id/Long Nguyen
ModeratorHi Travis,
If you are using MB Builder to create the field, you can use the custom attributes of the field to add
placeholderattribute, see my screenshot https://cl.ly/1fd50618830fIf you use the code, please follow the documentation to add the attribute
placeholder
https://docs.metabox.io/fields/text/#settingsLong Nguyen
ModeratorHi,
Could you please check the value of the meta key
popups__addandsections__addin the database? Please try to update it again.Long Nguyen
ModeratorHi,
Thank you for the idea, I will take a note to create the video guides with MB Views and other extensions. Have a nice day.
Long Nguyen
ModeratorHi,
You should get the group value first (return an array) then access the field by bracket notation
['field_id']mb.rwmb_meta( 'group_b30kbpp4roh', '', dossiers.ID )['select_u6xr9smqot'] -
AuthorPosts