Trying to list years (for a filter) but not all years display
I did an ajax filter to filter posts per years, however the filter isn’t showing all items. Years are displayed in DESC order, but not all years appear I don’t understand….
I did an ajax filter to filter posts per years, however the filter isn’t showing all items. Years are displayed in DESC order, but not all years appear I don’t understand….
I am trying to send a file via ajax but I get a 400 bad request error.
My code
I use Timber with WordPress.
I have a shortcode that prints a simple form, a button is used to submit the form. The problem is that when it’s pressed, the form gets submitted normally, ignoring the js function. I can’t understand why it’s doing this, since trying this locally on XAMPP works (I needed to change something to adapt the js code to WP, but nothing that should change its behavior.
I created a JS and PHP code to query a database and display matching rows on a page. It was messing up other pages on WP, so I wanted to know how to target a single page so the JS doesn’t run on other pages.
For a project I use Timber (TWIG) with WordPress.
I have been trying to create an appointment form. Everything else is working but I am not able to submit the date. Here is my code:
I have the link of WordPress doc about this function, but there is nothing explaining how to use this. I have a Ajax function, PHP and a HTML input. In this HTML I set the title and content, and I’d like to set the thumbnail too. Maybe I can do that with this function? Is there some example?
I got a set of meta boxes on a custom post type. Two of them are simple input/text-type fields, that should have autocompleted input:
I have just hit my first serious issue with WordPress and for someone that enjoys Ajax this is a biggy.