How can I get most recent post without using wp_get_recent_posts
-
Hi everyone,
I’m having this problem with the function wp_get_recent_posts, this function works fine on my local testing server however when I move it to my actual website this function appears to prevent the page from loading. I get no errors from the console, just any content after this method is called is not loaded.
I am looking for a way to get the most recent post as an array so that I don’t have to edit masses of code. So I can access post elements like this: $post[‘post_title’], $post[‘post_author’] etc.Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How can I get most recent post without using wp_get_recent_posts’ is closed to new replies.