-
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
- jquery not calling php function
- Search for categories
- AJAX in plugin wp_send_json() sending html
- How to display (plugin?) output on a single page (not a widget, probably not a short code) – template, plugin, combination?
- Facebook Messager Plugin
- Best place for if/else piece of code related to custom plugin?
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Advanced Custom Field DatePicker [closed]
- Use of Templates in a Plugin
- Ajax call returning 0
- Add comments for template variables
- Ajax with plugins returns 0
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Ajax fail and get 504 error
- Ajax Search Lite: Customize Autoscroll
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- WordPress Integration with Google Groups
- Best place to load wp_ajax_the_ajax_hook action in plugin
- jQuery.post not working within shortcode – WordPress Ajax
- Create tabs in admin options page from custom post type loop
- How to load wp_editor via AJAX
- How can I inject options into an select tag inside the widget form?
- Init plugin again after ajax call finish
- Display wordpress post’s in popup?
- Render custom php template into string
- Perform internal redirect in WordPress?
- Using AJAX to generate front end / viewer end pages
- How WordPress is able to change locale without using setlocale
- Using color picker in plugin, does input attribute order matter?
- How to handle cookies from a WordPress plugin on a cached page?
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- wordpress file upload with ajax when site is ajaxyfi
- Post Comments with Ajax in WordPress
- AJAX search as you type? [duplicate]
- WordPress api call using wp-ajax returns error 400
- AJAX call – failling to call do_action
- how to insert data in wordpress table usnig jquery ajax
- Using wpdb without loading all plug-ins via wp-load.php
- Is there any hook for theme activation ? or something similar?
- What are the Best Practises When Using AJAX in Plugin Development?
- changing posts layout in ultimate member profile plugin
- Template filter for custom taxonomy terms
- how to force tag page layout to use same as search layout?
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Show author on every sub-page
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- How can I use a file in my plugin as a replacement for single.php on custom-post-type query?
- Call plugin with php function
- Calling the_excerpt from inside a plugin template file
- Best practice for including plugin output in a template without using shortcode?
- Timber – Twig post.content returns null can’t create ACF Gutenberg blocks
- Render Modula Plugin Shortcode On Ajax Request
- URLs Added to ACF Repeater Field are not working
- AJAX on Front-End Button Click not working – Custom Plugin
- How to handle WordPress Plugin Front-end AJAX Call [duplicate]
- Does having more than 30 Admin Ajax affects site performance (plugin)?
- Submit Form data to another page via Ajax (WordPress Way)
- AJAX Load more start with x posts
- Is it safe to use admin-ajax.php in the frontend?
- plugin shortcode not working on ajax request call
- Where to find the code used to render a page that has a shortcode and a template defined?
- wordpress add_action() issue in ajax call
- How to display checked posts on another page over AJAX? (like comparasion style)
- How do I override plugin templates and stylesheets?
- Create custom template in plugin and display it into post template section?
- Create WordPress posts from JSON array using plugin in admin
- WordPress as template engine
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- Ajax Plugin Not Echoing Response
- Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this plugin
- where do I send my ajax calls
- Default taxonomy template in plugin, override in theme
- Ajax save data to database on document ready, no data being saved
- WordPress front end AJAX. Return 0 :?
- WordPress Ajax code is not Working
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Using WordPress to build membership Page
- don’t call ajax if not plugin page
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Plugin Admin Menu Boiler Plate
- How to do the simplest possible frontend ajax call from a plugin?
- Proper way to handle admin-ajax calls
- the_content() printing DOCTYPE, and tags in the middle of page
- Opening a JQuery modal window on click of a button with a JQuery plugin
- woocommerce search by sku and title ajax
- Using custom php file for ajax url inside plugin