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!
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 work at "https://www.freelancer.com/u/webcast.html#/reviews" .
I would like to work on your project.
I Really Need this work. I'll not disappoint you.
Thank you.
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 that if you will work with me once, you would like to hire me repeatedly.
I have bid a comparatively lower amount.
Please feel free to ask questions before awarding the project.
Thanks & regards, Ganpat Desai
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 before and can deliver as u have mentioned .I have checked your requirements.i have right skills to work on this assignmentWe find our expertise, skills and capabilities are perfectly blends with your project requirements because we have already worked on many projects.
You'll love the whole layout, interface design , cross-browser compatibility and mobile-device-friendly interfaces that we design
Our team has created over dozen of windows, and web based appliations iPhone/iPad games and apps, and over 10 Windows and Linux server APIs and security tools
Don't waste any more time in your development We take care of all these things for you . Advanced custom coding for our clients. Anytime.
can u provide your email or sky-pe etc for further discussion about the project. plz add me to discus
I am ready to discuss with you Looking forward to hear from you.
with best Regards