Hi
I am having a similar issue that is reported here:
Can a Photo view be applied to Upcoming Events?
The code snippet reported at the bottom:
https://gist.github.com/elimn/8fd157765d5aea751e66526183b8c8c7
works, but it is applied to all photo views.
I want to have the photo view in one page (frontpage) with few events and another , also with the photo view with all of them.
I was thinking about doing the filtering per page where the Photo View is placed.
So from the code snippet, I need to transform the filtering
if ( ‘postsPerPage’ === $name && tribe_is_photo() )
into something like
if ( ‘postsPerPage’ === $name && tribe_is_photo() && ‘all-events-here’ === tribe_get_slug() ) {
Is there any method doing this?
Any suggestion how to achieve this?
Do you have plans about adding the “limit” attribute to the photo view short cut.