I want to run wp_query on a separate php file for an ajax call

前端 未结 4 564
难免孤独
难免孤独 2021-01-03 00:43

For example:






        
4条回答
  •  独厮守ぢ
    2021-01-03 00:56

    You have to make the page that ajax calls a template page. Make a new page in your blog and assign the template. no headers no includes.

提交回复
热议问题