Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Dave,
Just fixed the bug. Somehow the meta box status (post status) is saved as an empty string, so they don't show up.
I fixed by doing a trick: first query all meta boxes with
post_type=anyto get all the ID. Then go to URL domain.com/wp-admin/post.php?post=ID&action=edit and change the post ID to be able to edit the meta box. Finally, go to tab Settings and set the status to Published.Now all meta boxes are visible.
Anh Tran
KeymasterHi Dave,
It's hard to know what the problem is. Please send me an admin account to [email protected].
Anh Tran
KeymasterHmm, that's quite strange. If it shows All (3), then that means the meta boxes are there. Can you make a screenshot?
Anh Tran
KeymasterHi Jackky,
You can write a custom storage for this purpose. Take a look at this:
https://github.com/wpmetabox/meta-box/tree/master/inc/storages
Then you can filter to
rwmb_get_storageto use your custom storage:https://github.com/wpmetabox/meta-box/blob/master/inc/functions.php#L227
March 7, 2018 at 3:09 PM in reply to: extension is not working ( gives some errors with metabox builder ) #8717Anh Tran
KeymasterAbsolutely!
Anh Tran
KeymasterAh, I see. Currently there's no such an option for that :(. I found a solution on StackExchange that you can try.
March 5, 2018 at 1:59 PM in reply to: extension is not working ( gives some errors with metabox builder ) #8696Anh Tran
KeymasterHi Ahmed, thanks for your report. I'll check and fix it.
Anh Tran
KeymasterHello naomivd,
Thanks a lot for your feedback! As you requested on Feb, I will send the refund. FYI, we’ve just updated the Builder extension and if you have a chance to look at the plugin, it would be great.
PS: Just refunded.
Anh Tran
KeymasterI found this solution. It works for simple fields.
Anh Tran
KeymasterHello,
Unfortunately, this feature is not supported yet.
Anh Tran
KeymasterIf you're using the
image_advancedfield, then you can set the paramimage_size. Forimagefield, it's not supported yet. Let me try to update that.Update: I've just added support for
image_sizeGithub. Can you try the Github version?Anh Tran
KeymasterIt gets the stored valued in the post meta with the helper function
rwmb_meta. If the value is empty, then get the default value fromstd.Anh Tran
KeymasterCan you try again?
Anh Tran
KeymasterBut when you imported, you already used
add_post_meta()which converts the array into serialized string. So it's not JSON anymore. I'm quite confused about that.Anh Tran
KeymasterYou can create a helper function for that:
function your_helper( $field_id ) { $field = rwmb_get_field_settings( $field_id ); $value = rwmb_meta( $field_id ); return $value ? $value : $field['std']; } // In your template echo your_helper( 'your_title_field' ); -
AuthorPosts