Change the Select statement to display posts in WordPress
-
All, I’m trying to basically find where the SQL statement to display posts are. I’ve added some add_meta_box code to my functions.php for a post. I then saved these values into a custom table that I created.
I’ve included things as a address, zip code, website etc. I’d like to be able to do a select on the zip code and also certain categories that I’ve defined in my posts but be able to display the address and website etc. How could I go about writing something to select certain posts from my custom table? I’m not even sure what file WordPress actually has the SQL statement to do this…
I know how to actually display the selected fields but just want to make sure I have the ability to select them all from my custom table.
Thanks for any help!
The topic ‘Change the Select statement to display posts in WordPress’ is closed to new replies.