Retrieve posts as an array not HTML
-
Hi,
It would be great if you could make a public function that just fetches the post objects and doesn’t render the HTML so we can have total control over the look of the results.
The main reason I want this is because there’s no way of checking the number of popular posts before rendering the content. My theme will show different content depending upon if there are popular posts or not.
As it stands I will have to write my own function to check, before I render the function.
Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Retrieve posts as an array not HTML’ is closed to new replies.