REST API for Beginners : Adding a New Post

REST API for Beginners : Adding a New Post

According to wordpress.org, ‘WordPress REST API provides API endpoints for WordPress data types that allow developers to interact with sites remotely by sending and receiving JSON (JavaScript Object Notation) objects.’ Talking about WordPress REST API, we generally talk about the end points as well as routes. If we just use http://sitedomain.com/wp-json/, we get to know what Endpoints are available and also the routes for those Endpoints. Scenario If we are playing around with posts, we

Continue Reading
Combine Terms and Posts in Search Result with WP_Query

Combine Terms and Posts in Search Result with WP_Query

Approach As we know the default WordPress search form searches for posts by the title and displays the result according to the keywords entered. But I think the search should be doing more. The search should be more effective as users don’t necessarily know what they are searching and how the search mechanism works. So, to make the search even more effective, why not bring the terms and taxonomies into action. I think if taxonomies

Continue Reading
How to send email notification to admin if comment is made on custom post?

How to send email notification to admin if comment is made on custom post?

Recieve Email Notifications for Comments From Settings » Discussion page you can set the options to receive email notifications whenever someone leaves comment on your website, or a comment is waiting to be approved. Checking these options will also send you email notification when a website sends you trackback or pingback. However, you will not receive any email notifications for comments or trackbacks marked as spam and caught by Akismet plugin. If you do not

Continue Reading
Easy way to show calendar input in your language and display the value in your language

Easy way to show calendar input in your language and display the value in your language

We generally use jQuery datepicker or calendar to accept date input in our website. The language of such datepickers are set to English. Sometimes we need to change the language of the calendar rendered by the jQuery datepicker because our site is set-up in the different language. Here is an easy solution to use jQuery datepicker or calendar in your own language. #Changing the language of Calandar Input Suppose we have a input field for

Continue Reading
Why Use WordPress

Why Use WordPress

WordPress is growing very fast. Good supportive community as well as convenience and flexibility provided by WordPress is the X-factor of this system. Here are the reasons I think WordPress is widely recommended everywhere: WordPress is Safe and Secure Nothing is 100% secured on the first place. But WordPress is developed with security in mind, so it is considered quite safe and secure to run any website. However, just like the real world, the internet

Continue Reading