If want json data as array of objects use
json_encode(array_values($faqqstns['aaData']));
1)Install plugin WordPress REST API (Version 2) and activate
API Calls
Posts
1)Get site posts
http://localhost/websiteName/wp-json/wp/v2/posts
2)Get all posts with the search term “xxxx”?
http://localhost/websiteName/wp
example:
url:localhost/search?searchTerm=test+testing
expected url:localhost/search/2?searchTerm=test+testing
:localhost/search/3?searchTerm=test+testing
:localhost/search/4?searchTerm=test+testing
$config['base_url'] = base_url().'search';
$config['suffix'] = '?' . ht
We all Know that plugins are php files that are located in a folder called wpcontents/plugins/folder'.
In this article i am going to create a sample plugin which you can use it in the front end with the help of a short code, even the shotcode creation will explaned. And we are going to manage our created plugin in admin module as well.
Just follow up with me one by one you will get to know how to create an awesome plugin. The final code will be available at the end of thi
Ready to start developing WordPress themes ? You are in the right place.
In this article we will take a look at what WordPress themes are and how they work. And we will develop a sample theme where we will have a header, footer, menu, sidebar and the content of posts or pages will be displayed dynamically