Attaching more than 1 parent (Post) to a media file

Im trying to build a Digital Album website for my family old pictures and albums. I crated a custom post type via Pods

Im trying to build a Digital Album website for my family old pictures and albums. I crated a custom post type via Pods called "Family Members" and crated something like 30 Posts / Pages with the family members full names.

Now.. Im trying to upload a new image to my media library and can attach only one Page / Post (In my case it's a family member)to each media file (Image)

I want to attach more than 1 post (More than 1 Family Member) to each image that i uploaded. so for example if i'll upload a picture of 2 people toghter i can attach the specific image to both of them. Wordpress is limited me to 1 only.

how can i change it to multiple selection?

Thank you very much guys! Maor.

Im trying to build a Digital Album website for my family old pictures and albums. I crated a custom post type via Pods called "Family Members" and crated something like 30 Posts / Pages with the family members full names.

Now.. Im trying to upload a new image to my media library and can attach only one Page / Post (In my case it's a family member)to each media file (Image)

I want to attach more than 1 post (More than 1 Family Member) to each image that i uploaded. so for example if i'll upload a picture of 2 people toghter i can attach the specific image to both of them. Wordpress is limited me to 1 only.

how can i change it to multiple selection?

Thank you very much guys! Maor.

Share Improve this question asked Mar 16, 2020 at 13:08 Maor NaimMaor Naim 1 3
  • If you're trying to modify the Pods UI then you will need to ask Pods support or Pods communities. 3rd party plugins and themes are offtopic here – Tom J Nowell Commented Mar 16, 2020 at 13:14
  • Actully it's not what im trying to do. nothing with Pods. Pods just helped me to crate a custom post type but my question is about the default WordPress Core and how can i change something in there. (Change one selection limited to multiple selections) – Maor Naim Commented Mar 16, 2020 at 13:15
  • The UI in your question is not a WordPress UI but a Pods UI, there is no selection UI like that in WordPress. The only way to set the parent of an attachment in standard WP is to go to the parent post and upload it there. The only way to change it without modifying the database itself is to delete the attachment and reupload it to a different post – Tom J Nowell Commented Mar 16, 2020 at 13:19
Add a comment  | 

1 Answer 1

Reset to default 0

Posts/attachments can only have a single parent post, this is because the posts parent is a single column value in the posts table. This cannot be changed without making major modifications to WordPress core itself, and would introduce other unforeseen problems due to ambiguity.

Instead, if you want to group things by family member, you should use a taxonomy named family_member or something to that effect. Taxonomies are how you're meant to organise and group content.

How you would integrate that into the Pods selection UI in your question however, is a subject beyond the scope of this stack, you need to ask in Pods communities or Pods support

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744665109a4586699.html

相关推荐

  • Attaching more than 1 parent (Post) to a media file

    Im trying to build a Digital Album website for my family old pictures and albums. I crated a custom post type via Pods

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信