Meta value not stored in the custom table and postmeta, but displaying content
Support › MB Custom Table › Meta value not stored in the custom table and postmeta, but displaying contentResolved
- This topic has 8 replies, 2 voices, and was last updated 4 years, 5 months ago by
Prabakaran Shankar.
-
AuthorPosts
-
June 16, 2021 at 1:03 AM #28922
Prabakaran Shankar
ParticipantHello,
I have created custom fields for CPT and assigned them to store in a custom table. The CPT posts are working fine but the metadata was not stored in a custom table and post meta.
Help me to solve this issue.
June 16, 2021 at 2:19 PM #28934Long Nguyen
ModeratorHi,
Can you please share the code that creates the custom table and custom fields? Please make sure that the column keys have to match your custom fields’ IDs.
June 16, 2021 at 4:00 PM #28937Prabakaran Shankar
ParticipantHello,
I have custom fields from the meta box builder and point to the custom table.
Pastebin link for the custom fields https://pastebin.com/m8hA9zvQBased on the custom fields and using MB Views, I have created a post "https://nviewscareer.com/job/assistant-professor-in-political-science-aarhus-uni-denmark/", which is populated all the data. (post ID 237)
For your reference, I herewith enclose the DB table (custom table, postmeta for the post id 237)
https://1drv.ms/u/s!AjW7znckfYbzg9I6EiKyD-ReYHftxw?e=rgBZHN
https://1drv.ms/u/s!AjW7znckfYbzg9I7KKjArUAGol6HuQ?e=sTryG5
https://1drv.ms/u/s!AjW7znckfYbzg9I8v_vIU6bVCZVb0g?e=WG937FJune 16, 2021 at 4:10 PM #28938Prabakaran Shankar
ParticipantHello,
For your kind notification, the custom field is not loading in the admin place. i get error notification like page unresponsive for this field group alone and the error code "Result code hung"
is this because of the too many (30+ custom fields)?June 16, 2021 at 10:02 PM #28944Long Nguyen
ModeratorHi,
It is possible that the PHP settings on your host/server are low so the custom field values are not saved. Please follow this article to know how to fix it https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/
Let me know how it goes.
June 16, 2021 at 10:13 PM #28945Prabakaran Shankar
ParticipantHello,
The Values are stored and recovered, but it is not displayed in the DB table.
I will check the PHP info and get back soon.
Please bear be online, I am in need to complete the project soon. Thank you.June 16, 2021 at 10:48 PM #28950Prabakaran Shankar
ParticipantHello,
I have increased the max_input_vars, but still no data displayed in the table. However, the post displays all the data loaded in the custom fields.
June 17, 2021 at 9:05 PM #28965Long Nguyen
ModeratorHi,
Please share your site credentials via this contact form https://metabox.io/contact/, I will help you to check the issue on your site.
June 26, 2021 at 4:18 PM #29135Prabakaran Shankar
ParticipantHi,
I have created a new table instead of debugging the old one.
The new table is working fine.
Please close this thicket. -
AuthorPosts
- You must be logged in to reply to this topic.