Custom Post Type Mapping with MLA
-
Hi David –
So I figured it was time to start a thread with some of the things I need some help with.
I’ve spent a lot of time on google and these forums and have read every post I can on my issue as well as the documentation. I have to say I appreciate your thoroughness on everything and am going to try and reciprocate that while being as clear as I can.
Ok my main use case is this, I want to map EXIF/IPTC from an uploaded image to a Custom Post Type (“Image”) and it’s custom taxonomy fields.
Here’s where I’m at:
I’m a photographer by trade, and have been wanting to design a new site/archive for my all my work using EXIF/ITPC and other metadata to populate individual posts create dynamic galleries with lots of searchable information.
I’m more of a Ux visual type and am really good with schemas and graphic design. I’ve been using Elementor as my front end builder quite successfully, but I’m really green with coding/php; I know enough to be dangerous but rarely successful.
My goal for my site was instead of just throwing up galleries of images as my “portfolio” like most photography sites, I wanted to give each one of my images it’s own post/desc/meta/template page, but that you can also browse like a gallery. I also want to organize those “Images” into “Collections”, that also have their own desc/meta/template. Pretty standard stuff right?
Well, I first tried to utilize the wordpress media attachment as it’s own page, but I haven’t been able to figure out how to query these attachment pages (Media) like a typical post type in Elementor. I’ve been successful at setting up Custom Post Types, creating Custom Taxonomies/Fields, and querying them in Elementor as I need – I just can’t query the media attachment pages like a post type.
So that lead me to creating a Custom Post Type of “Images” and figuring out how to auto create and populate a single Image with an upload.
Naturally, I don’t want to have to manually create a post and tag it every time I upload an Image which lead me to MLA and the mapping templates.
So I’ve been using a plugin called “Images to Posts” that has a bulk uploader and lets you select what type of posts to create. It works pretty well and , but what it doesn’t do is map the EXIF/IPTC from the successfully mapped Media upload.
I hopped on a thread of yours from like 6 months ago that had to do with doing a similar thing with WooCommerce Products, copying that metadata to a Product. I have looked into the Example Plugin on the Documentation. TBH – I’m completely lost on how to test and use it to maybe utilize it for my need. This is where my lack of coding knowledge is preventing me from moving forward.
Is there anyway to modify that plugin to work in my use case, that is map the EXIF/IPTC Taxonomies from the media to the Custom Post Type?
Or – an even better/simpler solution – do you know how to get wordpress to treat Media Attachment pages like CPTs so I don’t need the CPT “Images” at all?
PS – I’m really green with PHP and coding so please understand that I know I’m trying to do some advanced stuff with very little in my toolbox. I’ve read the documentation as much as I can, but to be honest… it’s so dense I get lost really fast, and when I think I figured out my problem and test it, it doesn’t work though I have been successful at mapping EXIF/ITPC from an uploaded image to Media taxonomy fields using templates.
PPS – David – do you offer private consultation on projects? I;m at a place where I think I may need professional help and would love to get my project done.
Thank you!
- The topic ‘Custom Post Type Mapping with MLA’ is closed to new replies.