Forum Replies Created
-
AuthorPosts
-
September 5, 2017 at 10:31 AM in reply to: same taxonomy Taxonomy Advanced fields not saving data #6883
Truong Giang
ParticipantYes, please send that file to my email address: [email protected].
Thank you.September 5, 2017 at 10:30 AM in reply to: Output URL as page title instead of full web address #6882Truong Giang
ParticipantHi there,
I haven't got fully your problem. Can you describe more detail?
Truong Giang
ParticipantOk,
Keep me up to date. Thank you.
Truong Giang
ParticipantI tested but it works. I guess problem is meta box can't get taxonomies. Can you give me the code you use to register taxonomies?
September 5, 2017 at 8:40 AM in reply to: same taxonomy Taxonomy Advanced fields not saving data #6876Truong Giang
ParticipantHi there,
Can you give me the code you use to register the meta box?
Truong Giang
ParticipantHi there,
Can you give me the code you use to register meta box?
Truong Giang
ParticipantHi there,
Which theme are you using? That's strange. If you deactivate all plugins except Meta Box, the file
C:\xampp\htdocs\Check\wp-content\plugins\meta-box-updater\class-mb-updater.phpwill not be loaded.Truong Giang
ParticipantYou miss user id at this command:
update_user_meta( 'media_selector_attachment_id', absint( $_POST['andydote_brand_image'] ) );It should be:
update_user_meta( $user_id, 'media_selector_attachment_id', absint( $_POST['andydote_brand_image'] ) );Truong Giang
ParticipantI received your information. Please wait for me to check it. Thank you.
UPDATE: I fixed the problem. Please get latest version of meta box from github. This is the change: https://github.com/rilwis/meta-box/commit/478fed2fff7ba4396e57f328598e338013fe142f
Thank you very much.
Truong Giang
ParticipantHi there,
Can you give me the full code (where you put setting interface, saving data code, register meta box code)?
Thank you.
Truong Giang
ParticipantThank you. Please let me know if you have any problems.
Truong Giang
ParticipantHi,
I checked again and again but can't find the problem. Can you share your credential for us to check it? If yes, please send the credential to [email protected]
Thank you very much.
Truong Giang
ParticipantHi there,
Sorry for late. I have already checked with your code but it works. And meta box doesn't look like your screenshot. Which version of meta box and extensions are you using?
Truong Giang
ParticipantHi there,
You can use
var_dump()to inspect the meta data then handle it:// Use this in WordPress loop. var_dump( rwmb_meta( 'prefix_post_1' ) );Truong Giang
ParticipantHave you tried with the code above? I tested and it works, with some CSS fix. I removed page checking. Please try again:
/** * Allow the media uploader work on specific pages */ function mb_allow_subscriber_uploads() { if ( is_admin() ) { return; } /** * Replace 'subscriber' with the required role to update, can also be contributor */ $subscriber = get_role( 'subscriber' ); // This is the only cap needed to upload files. $subscriber->add_cap( 'upload_files' ); } add_action( 'init', 'mb_allow_subscriber_uploads' ); -
AuthorPosts