• Hi,

    I need to communicate with the wordpress database ‘wp_posts’. I want to say: Show me the values of all post_title fields which have IDs from 868 to 1075.

    Can anyone help me with this? Do I have to solve this using SQL or are there any wordpress functions, e.g. something like get_option() which can make it easier to me?

Viewing 1 replies (of 1 total)
  • You can customize a WordPress query without writing any SQL. I think the closest parameter to what you want is post__in, which specifies an array of post IDs.

Viewing 1 replies (of 1 total)
  • The topic ‘How to speak to the database?’ is closed to new replies.