usually it because you are missing an “add_action” call for none logged in users.
add this to your plugin or functions.php
add_action('wp_ajax_nopriv_REPLACETHIS', 'ajax_get_date_post');
and change the REPLACETHIS to your action value from the ajax call.
remember that when calling ajax from front-end and you want to allow none logged in users
to make these calls you allways add both:
add_action('wp_ajax_my_action', 'my_action_callback');
add_action('wp_ajax_nopriv_my_action', 'my_action_callback');
you can read about more at the codex
Related Posts:
- Fire query on ajax post url page
- Pagination with custom SQL query
- how does $wpdb differ to WP_Query?
- ajax category filter
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- Ajax and WP_Query/tax_query parameter
- get data from wp-query, outside the loop & without url change
- How can I connect to another WP database and use WP_Query?
- ‘posts_where’ filter not applying ‘WP_Query’ in `wp_ajax`
- Ajax Infinite Scroll In Custom WP_Query Loop Not Working
- Get number of comments after modifying comment query
- How to change a custom query into a standard loop?
- WP_Query class not found
- Search – Ajax – Alter Query Parameters with Pagination
- How to count data records in wordpress which have same meta_value in wp_postmeta table?
- WP_Query orderby breaks when using AJAX?
- $wpdb->insert inserting two rows in database
- Update Loop with Form
- Get the Plugin Which Triggered a MySql Query in WordPress?
- Refine/Filter WP_Query Posts with jQuery or Ajax
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- Detect featured image among the attached images
- Show selected images on top in Media Manager
- Select from wp_post and multiple meta_value from wp_postmeta
- Create unique page without header.php for json feed
- Order by custom table and multiplication
- WP_Query ajax loader detect end of posts
- wp_query not searching with apostrophe
- How to correctly pass values to wpdb->prepare()?
- $wpdb select date range of posts
- What’s the purpose / logic of split_the_query in WP_Query->get_posts
- WPDB query – decrypting DB data
- Using Ajax to load more posts | Help me change the wording on my button to notify the user
- How to delete taxonomy term when a wordpress user is removed?
- Ajax Pagination on Ajax filter
- Wp_query returning only one post while query through ajax
- Ajax load more posts – WP_Query parameters not working
- Filtering posts from different categories into different section by doing WP_Query only once
- Load More Posts Button – AJAX
- Ajax WP_Query reutrns no results on author.php
- Current post in AJAX call is always zero
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- Custom query: Get all posts that are from a certain category?
- How to access custom WordPress database tables
- How to pass orderby params to $wpdb->prepare()?
- Is it safe to access the underlying mysqli object from \wpdb for custom queries?
- how update data through ajax and jquery
- WordPress query posts with multiple post_meta data
- Error with function in functions.php?
- Use Ajax To filter posts?
- get_post() is not returning correct value
- Loading two different AJAX requests on two different pages
- AJAX Breaking Offset Argument In WP Query
- Getting the post terms ‘wp_get_post_terms’ per post when within the functions.php file
- WP_Query offset is returning post from prevois loop
- Does WP_Query ‘responds’ badly to empty arguments?
- ajax wp_query conditional tags not working
- Change post query onclick
- Disable (or limit) queries when certain content (or data) is not needed (or showed)
- get_var is neither a string, integer, or array …?
- Ajax (jquery) wp_query pagination returns -1
- How to pass the current content of $wp_query to a new page?
- JOIN filter doesn’t work in WP_Query in wp-ajax calls
- WordPress AJAX Request returns 400
- WordPress Ajax form filter | Search by title with ajax form, breaks the other filters
- duplicated posts when using pagination
- Passing a SQL query to the WP Query
- Why when I using infinity scroll the one post loads over and over?
- Using Ajax and WP_Query to load more posts on category page fails
- WordPress live search and filter custom fields
- WordPress live search and filter
- Doing $wpdb->get_results returns NULL, doing the same query in my DB returns correct value
- WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination
- Finding post ID dynamically on click
- remove_action – pre_get_posts – does not restore original query
- WordPress custom query by archive title
- how to avoid reloading/refresh the page when displaying the post of wp_list_categories
- Select Unique Posts for a List of Tags
- Fetching $_POST from Page Template into functions.php
- How To Use WP_Query To Get The Custom Post type Posts With Keywords
- Include post_status check within $wpdb query
- wpdb get_results() returns only 2 rows
- I wan to process the following js to process the AJAX Request on my function to calculate author Total Post views
- Optimising amount of calls to custom fields
- Why is $wp_query fetching nothing?
- pre_get_posts or $where, which one to use?
- Inline Ajax call after term is appended with a @ or # etc. displayed in div
- Slow getting posts from category
- Search Query that Includes Custom Table
- How return normal search result using wp_ajax action for wordpress
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- WP_Query search by multiple meta key and distance
- wpdb LIKE request shows all database data
- How much does $wpdb->prepare(), then $wpdb->query() VS straight $wpdb->query(), can slow down the load time of whole page
- how to use transient method?
- get_post_meta bringing back results, but $wpdb->postmeta doesn’t
- WordPress WP_User_Query ignores the `meta_query` when called from an Ajax function
- AJAX search function resets wp_query vars
- WordPress Ajax search filter on dropdown select
- Is there another way to retrieve a post_id from post_meta other than a SQL query?