Search for a keyword across post types in a Gutenberg component
In a Gutenberg component I’m developing, I have a function that searches for a keyword across multiple post types specified in a constant:
In a Gutenberg component I’m developing, I have a function that searches for a keyword across multiple post types specified in a constant:
I am trying to create and endpoint where blog posts can be searched by author first name and/or last name. I was trying to do this with WP_Query but it uses the user nice name for the search which is not working. Is there a way to do this using a built in query or do I need to do a custom SQL query?
In a plugin I’m developing, I registered a custom REST API route to get some post data passing a post id:
I want to fetch all post revisions for my posts. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back … Read more
I wan to use REST API for saving and fetch setting of my plugin in wp-admin. Is it a good practice? Or is it better to use admin-ajax for this? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So … Read more
On my site I have a form that can be filled out by users. Once submitted, I am storing the form data in a third-party service using their RESTful API.
I try to disable some parts of the API :
I’m developing a Gutenberg block and I need to show a dropdown with all the terms of a custom taxonomy in it. I’m using the useSelect hook for retrieving this data, but it’s not working because it gets stuck showing the Loading... message and there are no errors in the console. I registered the taxonomy with the show_in_rest arg set to true.
I am trying to get metadata from a custom post type splash_location however it’s not showing up in my response. I have registered my metatag splash_location_title but it doesn’t show up in my JSON request.
So I have this site running under ssl (on siteground).