MLA, custom post types and media taxonomies
-
Hi David and community
first off, congratulation on MLA, it is a fantastic plugin. I’m a total rookie as far as web developemnt is concerned (probably build a handful of basic sites in my life, most of which using Divi).
I have embarked on something more complex. I’m building a yacht chartering website and that entails custom taxonomies and custom post types. Case in point there is a CPT “yachts” and for each yacht post I’d like to use MLA both in header to slow a slider with a handful of media tagged as “featured” (I have creted a “featured” category and tagging as yes-although I can use att. tags better – currently trying both approaches.
Each yacht will also feature a yacht gallery at the bottom. There is a custom media taxonomy called “media-yacht-name” to tag media with the inividual yacht name. Each post has an ACF “yacht_name” which is intended to be identical with each “page_title” (at least when the name is a single word without spaces.
When i explicitely use the “yacht name/page title/slug” in my shortcode, MLA works like a charm and I can also filter photos with AND (so I can get only the Featured images of yacht XXX.
[mla_gallery media-yacht-name=”XXX” AND featured=”yes”]The problem begins when i try to replace the explicit yacht name with a dynamic terms. I have tried yacht_name, page_title, sanitized them, fetched the slug of my custom post and so on and so forth and at best I only get MLA to fetch the images attached to the post.
I should point out that I have some concerns on how properly my custom post types have been registered as I’m noticing some issues either with ACF/CPT UI like Divi builder not recognising them etc. Maybe it has some relation.
Any ideas, or suggestions? I’d love any assistance you and the community can provide me with.
Thank you for your time
- The topic ‘MLA, custom post types and media taxonomies’ is closed to new replies.