Forum
Content from another page
I'm trying to grab 2 items (car listings) at random from another page (car sales page) multi item perch content field.
I've been on and off trying to get this to work for a week now and I'm not able to play ball, and ideally I don't want to use a shared field as thats confusing for the client adding data in the admin
Can anyone help me see what I'm doing wrong
Thanks
Here's the code on the homepage...
<?php
perch_content_custom('Vehicle for Sale', array(
'page'=>'/car-sales/index.php',
'template'=>'cars.html',
'sort'=>'date',
'sort-order'=>'RAND',
'count'=>2,
));
?>
What result are you getting? You've not said.
no results shown and no errors
What does debug output?
I can't see your
Vehicle for Sale
region being queried there at all. Are you sure you're on the right page?Sorry didn't put the debug code after the content
Ok i've now fixed it... feel like a tool
Changed
to
Thanks for getting back to me