Option to return post objects
-
There should be a parameter/argument which allows the function network_latest_posts() to return the array of post objects, instead of automatically printing out html. That way, the function could be used to query the latest posts and then displayed in a custom way.
Should be easy enough…
1. add “echo” => TRUE/FALSE to parameters
2. After building up $all_posts array, if this $echo is true, return $all_posts.What do you think?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Option to return post objects’ is closed to new replies.