Great, thank you for the help. I feel like I'm almost there...Apologies for my basic php knowledge, but I'm learning :)
Perhaps I could just outline exactly how the flow would work and then it might make more sense.
There is a map on my homepage and a user clicks on the Europe continent. The url that page goes to has a variable passed through in the url, so something like:
When the continent.php page loads, I want it to take that continent=europe parameter and use it dynamically in the slider to show only posts from Europe.
What I've done so far...
I'm using this code below to get the category ID from the slug name of the continent (my categories are all of the continents). Not sure if I need to add this to one of the easyrotator files or just ensure that it is added to the page which is being called, continent.php in this EG?
$idObj = get_category_by_slug($continent);
$id = $idObj->term_id;
So I'm thinking that I need to build up an array in my page continent.php which is then used in the easyrotator function? Something like this:
I'm not sure how to build this array!?
I would then add the $temp_array to this function in easyrotator.php
function easyrotator_display_rotator( $rotatorID, $echo=true )
$content = $erwp->renderRotator($rotatorID,$temp_array);
Then, I would add the same parameter in main.php to line 1170:
public function renderRotator($fullPath,$temp_array)
Just before line 1258 in the same main.php file I would add:
$contentDiv = preg_replace('|<li class="erwpFeaturedPhotos".*?data-filterDetail="[^"]*"|', '<li class="erwpFeaturedPhotos" data-filter="' . $temp_array['filter'] . '" data-filterDetail="' . $temp_array['filterDetail'] . '"', $contentDiv);
I hope this makes sense and are able to help me over this last hurdle!
Thanks again for your excellent advice,