opalepatrick Posted October 15, 2016 Share Posted October 15, 2016 If I use batcher to check these selectors template=product,product_code|title|general_text|specification|hints%=12302,include=hidden I get my hidden pages correctly. However if I use this in this code $result = $pages->find("template=product,product_code|title|general_text|specification|hints%=" . $part . ",include=hidden"); I get no results. Any ideas appreciated. Link to comment Share on other sites More sharing options...
adrian Posted October 15, 2016 Share Posted October 15, 2016 Have you checked that $part is returning what you expect? Any chance it should be $part->id 1 Link to comment Share on other sites More sharing options...
opalepatrick Posted October 20, 2016 Author Share Posted October 20, 2016 Sorry I took so long to get back adrian. Stuff Thanks for the reply. It was not in fact the issue but it did make me realise that I needed to check my code more rigorously and then discovered a variable typo further on that was not producing an error. So, thanks a lot. 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