a-ok Posted February 17, 2016 Share Posted February 17, 2016 I need some confirming on how find selectors work... I have, for example, a page find selector setup as: parent=/portfolio/, sort=sort, project_location_london=camden, project_location_elsewhere=midlands What this would do is return any children of 'portfolio' that has project_location_london set as camden and project_location_elsewhere set as midlands. What I'm wondering is if it is possible to return any children of 'portfolio' that either have the project_location_london as camden or project_location_elsewhere as midlands, so it would retrieve both? Link to comment Share on other sites More sharing options...
a-ok Posted February 17, 2016 Author Share Posted February 17, 2016 Found it... $items = $pages->find("template=product, stock>0, (featured_from<=today, featured_to>=today), (highlighted=1)"); Link to comment Share on other sites More sharing options...
BitPoet Posted February 17, 2016 Share Posted February 17, 2016 This is a classic case for OR-groups. parent=/portfolio/, sort=sort, (project_location_london=camden), (project_location_elsewhere=midlands) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now