Get yesterday's content with contextual filter in views block I have a view and I try to show only yesterday's content.
I add a contextual filter "Content: Created date".
If I select "Current Date" from "Provide default value" its works perfectly.
But I select "PHP Code" its not working whatever I write. I try a lot of format.

In this topic there is a solution but its not work either; 

return date("d", strtotime("-1 day"));


How can I do that?
Try this one 

Content: Post date (&gt;= -1days)


Instead of this

return date("d", strtotime("-1 day"));