Build Your Own REST API on WordPress in 3 Minutes

In this article, we will learn how to build a REST API on WordPress. Registration In order to build our API, we first need to register it with WordPress by using  rest_api_init hook which fires when the API request is coming. add_action( ‘rest_api_init’, ‘regsiter_api’, 10 ); Inside the register_api function, we will register the routes and implement…

WordPress Posts vs Pages

WordPress Posts vs Pages

WordPress, although started as a blogging platform, is now well-known as a robust content management system (CMS). In other words, WordPress helps us manage and organize our website’s content easier and faster, if not almost effortless. There are 2 ways to create content for your WordPress websites: WordPress Posts vs Pages. At first glance, they…

WordPress Categories vs Tags

In the previous lesson, we’ve discussed the differences between posts and pages. If your website is not just a corporate ‘static’ website, chances are you’re gonna have at least some posts. You would likely, as a result, need to categorize and tag them to make it easier for your readers to find and browse your…