Forum Replies Created
-
AuthorPosts
-
aryanraj
ParticipantHi, the tutorial doesn't cover the custom table structure. please provide a relative example and code.
Thanks
aryanraj
Participantthe issue is from WordPress media function so you can close it.
aryanraj
ParticipantNo, WordPress automatically generate a thumbnail image from the first page of a PDF filename-pdf.jpg
This includes FULL and other sizes. Metabox File Upload field shows attachment preview thumbnail but the Thumbnail size it takes from /wp-admin/options-media.php
My issue is i have disabled the other sizes generation so it only create one preview without cropping for thumbnail. Metabox doesn't seems to respect the default preview file and revert the svg icon.
If you upload a pdf in Library, you can check the preview and generated sizes via FTP/SFTP. I am looking for a way to show default preview jpg file and not thumbnail size.
aryanraj
Participantthumbnail for pdfs. unchecking the media thumbnails shows this SVG /wp-includes/images/media/document.svg. i want to use the default filename-pdf.jpg without the cropped/thumbnail version.
aryanraj
Participantoh, i don't remember deleting this table but the fix worked. mark this as solved.
aryanraj
Participanti don't see it is creating this table wp_mb_relationships. how to fix it?
aryanraj
ParticipantI manually uploaded through database using tableplus. I wonder if we can have anything that would click update button of the post so the rwmb_after_save_post run without touching each post.
January 19, 2026 at 9:41 PM in reply to: imported data in custom table not showing in WordPress #49629aryanraj
Participantmostly the switch is OFF and file upload field is blank.
sometime the switch is on and file upload is blank.January 19, 2026 at 9:40 PM in reply to: imported data in custom table not showing in WordPress #49628aryanraj
ParticipantHi, there is a switch which is 0/1, if enabled shows a file upload field. When a book pdf is available, switch manually get ON/1 and file upload appear.
mostly the switch is on and file upload field is blank.
sometime the switch is on and file upload is blank.Switch field get 0/1 as per the condition but file upload field is not empty. I am using VARCHAR(2048) NULL for this field. should i remove the NULL?
aryanraj
ParticipantShould i use rwmb_after_save_field or rwmb_after_save_post? also if you could share a function. it would be really useful for us.
The reason is i don't want to write the book title again as it is already saving in post_title in wp_posts but it is not in custom table so i can export in csv.
January 18, 2026 at 7:30 PM in reply to: imported data in custom table not showing in WordPress #49621aryanraj
ParticipantI understand now that it needs the data from wp_posts so that is what i need to import/export also. i am now looking for help regarding Q2 empty value saving NULL.
-
AuthorPosts