title: creating a button filter wordpress custom theme
body: <p>I'm new in the php language, I have to create some buttons that have to filter / show some posts of certain categories but without the page being reloaded. So I know it's possible to use a function with php and ajax but I don't understand how to call ajax and what to write.<a href="https://i.stack.imgur.com/JLau1.jpg" rel="nofollow noreferrer">The result should be this</a></p>