I’ve looked within the forum but cannot find anything in regards to my situation.
I’m trying to create a masonry on the home page of our website and calling random images from specific users with specific fields.
For instance: An artist with the selected field of PHOTOGRAPHY (just one random image) would pull in for the masonry on the home page. This one photo would be a representation of the Photographers and this would update when the page would reload, grabbing some other artist in that field and displaying their image.
Is there an API call somewhere in the documentation that could help with this? Or, is this a PRO version thing?
The solution I use for this is a separate gallery plugin, Media Library Assistant.
You would need rtMedia Pro and all images assigned to an attribute of “Artist” or “Photography” or “Artist” with terms of “Photography” for the taxonomy. That means your users, as they upload images, would have to assign the attributes to them. rtMedia Pro allows this, it’s one of its features.
Install Media Library Assistant, and then once installed copy the buddypress-hooks-example.php.txt file in the examples folder and make that its own plugin by making a directory for (/plugins/buddypress-mla-gallery/buddypress-hooks-example.php) and activate that as a second plugin. This second plugin allows MLA gallery to “talk” to rtMedia and get the links to the right page rather than the wordpress attachments page.