Skip to main content

All Questions

Tagged with
1 vote
0 answers
54 views

WP_query with ajax filter not working with input fields

I'm having trouble with my query when using ajax to filter the posts. I have a page where the posts of post type 'activiteiten' are loaded when the start_date custom field has today's date or a date ...
Thessa Verbruggen's user avatar
0 votes
0 answers
139 views

Applying a custom query for the AJAX "us_ajax_grid" function (from WPBakery)

I have some custom queries that are working properly with pagination if I use the regular pagination numbers, but I want to use the pagination as "page load on scroll" and then apply my ...
Pedro's user avatar
  • 33
0 votes
1 answer
93 views

Implement AJAX 'load more' with offset posts

I am trying to implement 'Load More' functionality via a button in a WordPress theme. We are starting by displaying the first five posts using pre_get_posts in the standard WordPress query and, when ...
Alex Ryans's user avatar
0 votes
0 answers
27 views

Optimizing AJAX Query with Large Database

I have a WordPress AJAX function that performs a location-based search on a website with a large database of over 100,000 posts... The function is responsible for querying the database to find the ...
Francisco's user avatar
0 votes
0 answers
53 views

How do I change a variable in a Wordpress query with a select menu dropdown option and reload the WP query

I'm implementing a drop down menu that is populated with brand names of products. It's populated dynamically with the title(s) from a wordpress custom post type (axiss-brand). When the user selects ...
KKA's user avatar
  • 1
0 votes
1 answer
257 views

AJAX WP_Query's order and orderby parameters not working

TL;DR SUMMARY OF PROBLEM AJAX will not use the proper order and orderby parameters given, and instead sorts post by menu_order (posts section doesn't even have post attributes set as true). PROBLEM ...
Devon Regular's user avatar
0 votes
0 answers
52 views

AJAX multiple search boxes not merging with array merge

this is a very frustrating problem. I have some search boxes for different feilds on my site. some are acf meta fields, another is for title, and another for a keyword taxonomy. But on the front end, ...
post poop zoomies's user avatar
0 votes
1 answer
145 views

Load posts via AJAX without draft status

When I load posts in the frontend via AJAX, I also see posts that have the status "Draft": function get_projects() { $args = array("post_type" => "project"); $...
Jonas's user avatar
  • 159
1 vote
0 answers
604 views

WordPress Ajax search filter on dropdown select

I am trying to create search filter on click dropdown selection, but still not achieved, here is my code. Here is form code, which contains three different dropdwon <form id="filter-form"&...
Parth Ranjan's user avatar
0 votes
0 answers
140 views

AJAX search function resets wp_query vars

I have a custom post type called event. On the archive page I implemented a simple search which returns a selection of posts. Before submitting the search form I'm seeing the proper query vars for the ...
Hewe's user avatar
  • 75
1 vote
1 answer
2k views

woocommerce search by sku and title ajax

This snippet works only in Title and i need to add also in Metakey SKU. <?php // Ajax Search. function thb_ajax_search() { check_ajax_referer( 'thb_autocomplete_ajax', 'security' ); $...
DK Thakur's user avatar
  • 149
0 votes
1 answer
1k views

WordPress Search Ajax + Isotope + InfiniteScroll

Custom Ajax Search filter for WordPress Search I want to give a complete breakdown so you can easily analyse the problem and see that the issue is nowhere else, but the JavaScript. If you are not new ...
jkcoding's user avatar
0 votes
0 answers
68 views

Wordpress AJAX Request returns 400

I am trying to make a ajax post request, however I a getting a 400 error, not sure what I am doing wrong. If you are able to have a look at my code, I'd really appreciate it. Below is the form. <...
user2977774's user avatar
0 votes
1 answer
958 views

Select2 AJAX and WP Query Returns ALL and does not filter

So I'm a bit stumped here. I regularly use Select2/AJAX/WP_Query to search for and retrieve default WP post-types and my own custom post-types. Almost every site I've built over the past few years ...
Tony Djukic's user avatar
  • 2,109
0 votes
0 answers
34 views

Why when I using infinity scroll the one post loads over and over?

I am using the following code to make my posts infinite loading. But it's weird, for now there are 7 posts on the site, and 6 posts setting for displaying and when I started scroll only one post ...
Victor Sokoliuk's user avatar

15 30 50 per page
1
2 3 4 5
11