Query database without get_header() ?
-
I want to create a php file that queries the database for posts, then I want to call on that php file with ajax to load in that content.
I was hoping to do this without having to create a page and assign it a template, but it seems that if I don’t do this, I can’t use WordPress’ query tags, etc.
I’d like the PHP file to be as unobtrusive as possible.
What would be the best, most secure way to do this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Query database without get_header() ?’ is closed to new replies.