Custom post type loops with different page templates

I have some recommendation maybe could help You and Other

  1. for better security and some reason create a plugin for do it and use shortcode or other way for print result in front page
  2. don’t use ajax call to the direct php file and use admin_ajax.php which you can find how to use in wp document
  3. prevent direct access to php file with this code on the first line of all php files if(! defined( 'ABSPATH' )){die("You Can not Access Directly to This File")}
  4. Alwayse use wp-nonce for send and receive any data in wordpress

Leave a Comment