Support » Developing with WordPress » Get all posts in one query

  • skylarkcob

    (@skylarkcob)


    Hi, I have a blog with more than 3000 posts and continues to grow. Now I want to get all posts to show in select box (select tag HTML) but it runs very slowly, anyone can help me this problem.

    Thank you.

Viewing 1 replies (of 1 total)
  • Try writing a custom query using $wpdb object to query database for post name and id only which will take less time to load data as compared to complete post data for 3000+ posts.

Viewing 1 replies (of 1 total)
  • The topic ‘Get all posts in one query’ is closed to new replies.