Forum Replies Created
-
AuthorPosts
-
Dragos
ParticipantAnd also, i transferred my custom field to custom table using this guide https://metabox.io/move-custom-fields-data-to-custom-tables/ . It works fine, but now when i save a an item from my post type, it saves like this for media a:1:{i:0;i:5874;} before it saves just the id "5874" on wp_postmeta. and for multiple select field it saves like this a:1:{i:0;i:Retail;}.
Im using WPGridfilter as a card and for filtering. I can query the data from a custom table but the filter items is not working correctly
Dragos
ParticipantHi Long, i dont get it. what should I put if i only want to show it on post that has category of Expert Tips?
Dragos
ParticipantHi Long. I tried adding this on query args but it still shows on other categories.
https://snipboard.io/z2pPWE.jpg
Kindly refer to the screenshot above.
Dragos
Participanthi. the uploading comes from the flowmattic plugin which is not directly attached to the post. the upload comes first then after that it will just create a new post and set the correct images via flowmattic again.
what i did is to add some function that will attach the media to the post.
$attach = array( 'ID' => $img, 'post_parent' => $id ); wp_update_post( $attach ); clean_attachment_cache($img);Dragos
Participanti also have one issue. i follow this tutorial https://metabox.io/display-uploaded-images-as-wordpress-image-gallery/ for converting the iamge advanced to wordpress gallery. the problem is in order for the gallery to show i need to attach each images to specific post. it is not automatically attaching to the post on which it was uploaded.
check this image: https://snipboard.io/nYQWeq.jpg
the first one i manually attached to the post, the others shows it is not attached although it was already uploaded to the post.
Dragos
ParticipantHi,
Thank you. it is actually working. i just need to resave the post manually. can I run an action to save it again inside a function call?
Dragos
ParticipantHi long,
Thank you for the reply. I already tried the add_post_meta, It did work on image gallery, can add multiple values, but theres one issue, if i go to the backend and try to edit it, the property images are not showing, even though theere are pictures on the frontend.
check this image: https://snipboard.io/JynRTp.jpg
image above is dine with add_post_meta
however this one is by manual adding on backend. https://snipboard.io/bZXMe1.jpg
you can see that there are images showing on the field and add media.
so problem is when I want to update the images, I cannot do it on the first one because theres no media showing and cannot add also.
May 5, 2022 at 7:59 AM in reply to: โ Spacing and Line Returns of data in Custom Field Textarea Are Removed #35886Dragos
Participantyou can try to use wysiwyg field to add the formatting of texts.
Dragos
ParticipantHi Long. Need help for this.
Dragos
ParticipantHi long. Yes the media is already saved . the issue I have now is this https://support.metabox.io/topic/image-advanced-update-via-rest-api/
Dragos
Participantcan you give me some code snippet or a function that will append multiple image id on the image advanced field
Dragos
Participanthi. is there a way to add a php function that will append images on gallery via wordpress api ?
Dragos
ParticipantHi Long,
Is there a fix for this ?
Dragos
ParticipantI tried using this get_post_meta insted of $_POST. when I quick edit it returns the correct title but the problem is I need to uodate it twice to generate the correct title.
Dragos
ParticipantHi Long . I tried that but still it returns no title after quick edit or bulk edit.
-
AuthorPosts