How to get all wp_posts in wordpress fetched from database

Question

I have downloaded a theme and installed it. Here the theme has custom fields for limited numbers. For ex. author_name, comments but, I want all the wp_posts to be displayed.

And prior to that, actually I have a database associated with this. So basically I want my piece of code to read the whole database and represent it in columns in my wordpress page. For ex. author_name, ping_status, post_status etc.

So basically I want to write a function, that can access my database and pull the data from database and dump back in my wordpress page.

I don’t know if I put it in the right words, but please do help me get through this.

0
, Aditi Gare 1 year 2020-07-17T09:10:22-05:00 0 Answers 69 views 0

Leave an answer

Browse
Browse