Please read the WordPress tutorial on using AJAX in plugins (you are basically adding a plugin to your theme if you need to use AJAX). There are two things I see right off the bat that need to be fixed before your proceed. Note what the tutorial says about the global variable ajaxurl
. Also make sure you have set up a php function to process the AJAX request, and that you specify that function in the action
field of your data. It’s like you’re making a phone call without a phone number; the system doesn’t know where to send the AJAX request for processing.
I’d work on anything the tutorial suggests, but I think those two things are the big ones right now.
Related Posts:
- Ajax filter with custom taxonomies
- Filter posts with ajax form and checkboxes
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Get Custom Taxonomy ID within loop
- Get custom post type by category in a page template
- How to filter post data with AJAX on page?
- Categories under custom post types doesn’t show properly
- How to get only one category of custom post type?
- Get all taxonomies for all post types
- Append taxonomy terms as class names in markup?
- Show ACF field from custom taxonomy and display on the single template
- List terms from Custom Taxonomy
- WP_Query search posts by custom post type and custom taxonomy
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- How to output wordpress custom tags separated by comma?
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Weird problem happening with custom taxonmy when creating/updating posts
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Getting the URL of the parent page
- get_posts of Custom Post Type AND Custom Taxonomy
- Filtering WP_Query Dynamically on the Front-End
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Loading custom content type from ajax results?
- Get custom post type list for every category shortcode
- AJAX load more for different custom post type loops
- Ajax Custom Post Filter is not filtering
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Categorize custom post type
- Load Custom_post_type categories post with ajax
- Function causing the loop display posting more (empty)
- Different Category system needed for the Custom Post Type
- Retrieve custom post types by custom taxonomies with WP_Query
- Get term name without a foreach loop
- Custom post type’s extra fields – how to handle?
- Trying to get custom post of a custom taxonomy
- Control content before and after custom post type loop
- Get custom post type categories to show up in menus
- Show current custom taxonomy
- Different options per post type in WP_Query
- filter by custom taxonomy using ajax
- Creating a non-hierarchical Taxonomy that behaves like categories
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Query custom post types & Taxonomies and list them in a table on a page
- Custom post type and custom taxonomy 404 on page 2
- Nested Custom Taxonomies | Incorrect posts when querying
- Commas not displaying in implode
- add custom tags for custom post type in wordpress
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Foreach loop returning more than one item when querying taxonomy
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Using page title as a link to term archive
- Setup page template array in a custom post type
- How do I ensure that post_type and Taxonomy use the same slug?
- Custom post type page with parameter
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Custom front-end form for adding post – Category problem
- set object terms after some some time of published post – functions.php
- update custom taxonomy custom fields
- Filter taxonomy by CPT
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Not saving custom taxonomy while using ajax
- Check that a slug is present in the get_terms request
- Assigning categories to custom post types via a front-end form; only works for native post type
- pagination problem listing custom post types of taxonomy in wordpress
- Taxonomies are not showing in the category dropdown
- Combine multiple separate lists into one
- How to display custom post type pagination buttons when processing AJAX request
- Change Search display for Custom Post Type
- Show parent category and subcategory once in while loop
- Custom search for a custom post type in WordPress
- Show ajax form resuslts in page
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Custom Taxonomy – fields
- Ajax load more inside custom post type taxonomy
- tax_query not working?
- Add active class to foundation 6 tabs while looping categories
- The most recent post of custom taxonomy
- Show tags of custom post types in WordPress
- Show custom taxonomy not in submenu
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Pods pagination erases my sub menu
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- How to Fix WordPress 500 Internal server error due to custom post type
- Values inside a custom field to determine which category posts to display
- Exclude Custom Post Type from shared Custom Taxonomy
- Show Custom Post Type taxonomy term that matches custom field
- WordPress Custom Post Type and sort by Tags
- Order by custom field attribute
- Looping taxonomy in taxonomy?
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- posting twice from an array?
- Custom Loop for custom post type. Compare by meta_value?
- update custom taxonomy with Ajax in edit.php file [duplicate]
- Inserting two categories
- Display ONLY ONE $term (Out of 4 terms) from a Custom Taxonomy and CPT
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- How to filter custom post data with AJAX?