Käynnissä

Complete AJAX WP_QUERY

When calling wp_query via AJAX and passing a category ID and search parameter, the query does not return any posts. On page load, the query runs fine, which runs the same query.

If I add these variables directly in the JS or on the query itself, the query also runs fine.

I can also see the variables being set on the JS console when tested, so the issue would appear to be that they are not being passed via the AJAX request, but I'm struggling to see why as this runs on page load.

The "cat" variable is set by selecting a category (or multiple ones) via a side menu, then this is set as a string of IDs (1,2,3,4). The "0" value is set initially, so all posts are returned.

The "search" variable is taken from an input field.

I have attached the templates used for this, please can you take a look and add the line "I have looked at the files" to your quote, so I can filter out the blind quoters.

Thanks!

Taidot: AJAX, PHP

Näytä lisää: jquery show hide ajax complete, custom content query webpart ajax, return multi string value, ajax complete code, sharepoint content query webpart ajax, content query webpart ajax, shell script string value, query dom ajax solution, query database ajax php, php ajax complete validation form, ajax auto calculate form value, quary string value action script, string value url field, extjs ajax combo set default value reload load, openx query ads ajax, seo website query string value, ajax select lookup query, ajax database query progress aspnet, ajax select query, display mysql query ajax menu, ajax text query size, query mysql con ajax

Tietoa työnantajasta:
( 31 arvostelua ) Witney, Thailand

Projektin tunnus: #13153530

Myönnetty käyttäjälle:

aryan151

Hello Sir, i am having 8 years of exp i have read the project and ready to do work right now...........................

10 $ USD 1 päivässä
(186 arvostelua)
6.4

6 freelanceria on tarjonnut keskimäärin 21 $ tähän työhön

webcast

Hello sir/mam, I am good at : 1. WordPress web development 2. PSD to HTML 3. Responsive web development 4. Graphics Designing 5. Photoshop 6. PHP 7. html + CSS Styling 8. js & jQuery. you can check my Lisää

30 $ USD 1 päivässä
(41 arvostelua)
4.8
GanpatDesai

Dear Sir/Mam, "I have looked at the files" I have read your project description and ready to start work immediately. I have been in this industry for 4+ years and such jobs are my daily practice. I can assure tha Lisää

25 $ USD 1 päivässä
(25 arvostelua)
4.2
25 $ USD 1 päivässä
(18 arvostelua)
3.4
nrtechweb

Greetings, Hope you are doing well! My name is Neeraj Chaturvedi and i am senior PHP/WordPress developer,designer and blogger. Through my 5 years of professional experience, I have gained a good reputation for my ex Lisää

15 $ USD 1 päivässä
(2 arvostelua)
2.0
techwizards2

Dear Client, Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project befor Lisää

25 $ USD 1 päivässä
(0 arvostelua)
0.0
apasno

Hi I am an IT Professional and full stack web developer I can assure you that I can help you with this one! looking forward for this project

20 $ USD 1 päivässä
(0 arvostelua)
0.0