Thanks a lot of ANDRE R . I have done what you say but i want to have only the 4
most recently modified articles of the parent_node_id=189.
Your code return the first four article of the parent_node_id .
The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.
It was just an example, switch 2 with 189 and it should work.
Check the 1. link for more examples using different filters. The same code can also be used for subtree fetches by changing out 'list' with 'tree'.
To get the 4 most recent modified, look at that page for how to sort ( look for 'sort_by' ) on modified or publish dates.
The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.
Albert Einstein
You must be logged in to post messages in this topic!