-
You shouldn’t be including jQuery explicitly. WP ships with a copy and multiple copies tend to mess things up. See
wp_enqueue_script()
. -
You shouldn’t be trying to load PHP file inside a theme directly. It won’t load WordPress environment that way (unless it tries to do so explicitly, which is usually very fragile and pretty much cannot be reliably done in public code).
-
Error 500 is unfortunately very not transparent thing. It is produced by your web server rather than WordPress and there is no insight into what might be causing it that can be gained on WP level. You’ll have to look up details for error in your web server logs / ask hosting support to do that.
Related Posts:
- Create custom page templates with plugins?
- Is there a WordPress plugin that registers a plugin file as a custom page template?
- Is it possible to stop selected plugins from loading on certain template pages?
- Ways to have multiple front-page.php templates that can be swapped out?
- Template plugin for blog posts? [closed]
- Register Page Template from Plugin
- Plugin-generated pages use Not Found or Pages Archive templates?
- How to use get_template part in the plugin?
- Custom form not showing in correct place on page
- How do I show content from a plugin using the template the site is currently working with?
- Pull comments from one page/post into another page/post?
- How to call php file in theme directory from plugin
- How to provide page_template path in custom plugin using WordPress
- Consuming an external API in WordPress?
- Help with 4.6. Attachment response object in JSON API plugin
- Custom Taxonomy in plugin and template
- Add Archive Page Template via Plugin
- Loading shortcode with ajax
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Why is my ajax call refreshing the page?
- Creating a wordpress plugin where users can override templates
- Admin-ajax.php is dying “0” without processing function
- How to remove an Ajax action
- Get Plugin Information from Multiple Sites Externally
- How to add pagination to wpbakery grid?
- Plugin shortcode won’t work on a custom template file [closed]
- How to get full content including template HTML
- Why plugin ajax response is -1?
- WordPress Ajax Callback
- Is there any way to get all the name or slug of template parts used in a page?
- plugin ajax to external php file always return null
- When to use action hooks and plugins
- Form isn’t inserting data into database with ajax plugin
- List Category Posts rewrite necessitates rewrite of customised templates
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- jquery not calling php function
- How to display (plugin?) output on a single page (not a widget, probably not a short code) – template, plugin, combination?
- Advanced Custom Field DatePicker [closed]
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Best place to load wp_ajax_the_ajax_hook action in plugin
- jQuery.post not working within shortcode – WordPress Ajax
- How to load wp_editor via AJAX
- How to handle cookies from a WordPress plugin on a cached page?
- wordpress file upload with ajax when site is ajaxyfi
- AJAX search as you type? [duplicate]
- WordPress api call using wp-ajax returns error 400
- how to insert data in wordpress table usnig jquery ajax
- Using wpdb without loading all plug-ins via wp-load.php
- changing posts layout in ultimate member profile plugin
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Call plugin with php function
- URLs Added to ACF Repeater Field are not working
- Is it safe to use admin-ajax.php in the frontend?
- Where to find the code used to render a page that has a shortcode and a template defined?
- Create WordPress posts from JSON array using plugin in admin
- Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this plugin
- Plugin Admin Menu Boiler Plate
- Proper way to handle admin-ajax calls
- Using custom php file for ajax url inside plugin
- How do I create a custom permalink structure for a page template
- How to use template inside plugin shortcode with variables for big HTML code
- Ajax object not defined – JS file is in plugin folder
- How to get CPT category checkbox list and show post of selected(multiply) checkboxes via ajax?
- WordPress subfolder installation AJAX Problem
- Call Ajax URL in Plugin
- Calling a class method instantiated by ajax call in wordpress [closed]
- reCAPTCHA on page template without plugin
- use EDD Content Restriction for restricting php in template
- AJAX call inside plugin class is not getting to it’s response function
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- How do I reinit WordPress plugins dynamically using jS?
- the_posts_pagination() not working if I add wp_head() to header.php
- Trouble with AJAX using GET
- Adding LOAD MORE on a page
- How to check if short code is present in template?
- Ajax call to php function doesn’t work PHP code
- Customize plugin templates
- admin-ajax.php returning 0
- Update User Meta Via Ajax
- Compare Ajax Data Results
- User Following System
- Frontend AJAX Request causes Error: ‘Call to undefined function add_action’
- Ajax Load More on Hierarchical Categories
- How to use custom footer template in a site-plugin?
- cURL do not mimic click
- Creating new option (add_option) from AJAX – Settings API
- How can I use wp_ajax_response for front-end error reporting?
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Not getting result using ajax on wordpress
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- AJAX login without a plugin does not work. when add a action to function.php
- AJAX doesn’t pass variables to the php function in the plugin
- Plugin constructor called multiple times
- Trouble After Update, Removing Plugin
- How to create a page template using custom plugin
- Display HTML5 jQuery Audio Player On Front Page
- How to display content depending on the Woocommerce Product Category
- Inline AJAX script passing variables to PHP
- Cannot register a block in my Twig-based theme using Timber for WP