Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Программный вывод нод по диапазону даты
- $query = new EntityFieldQuery;
- $result = $query->entityCondition('entity_type', 'node')
- ->entityCondition('bundle', 'event')
- ->propertyCondition('status', 1) // Getting published nodes only.
- ->fieldCondition('field_dates', 'value', date("Y-m-d"), '<') // end date before today
- ->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement