How To Exclude Posts and Pages in WordPress Search

Sometimes we don’t want to display every page and post in search results. Today I like to explain you how to add filter to the search. For this I have added a filter to the search query of WordPress and exclude posts or pages as per my requirement of the search result. We can exclude […]

How to Integrate responsive-nav.js into WordPress Navigation

Responsive Web Design is all the rage these days. Clients are asking for it, web developers are expected to know it, and most importantly, mobile devices are more popular than ever. One big area of a website is website navigation. In my post, I talk all about responsive navigation and how to make it work […]

Taking Control of WordPress 3.8 Admin Bar

What is WordPress Admin Bar? WordPress admin bar was introduced in WordPress 3.1. The purpose of the WordPress Admin Bar was to connect the backend (dashboard) of a WordPress to the Live. It always shows up right below the browser address bar and looks somewhat like below image: The WordPress Admin Bar helps webmasters switch […]

Notify WordPress users of newly published post

So you have a post section and each time you publish a new custom post you’d like to notify all your users (subscriber). It could be a post, a product, an event or perhaps a tutorial etc. Usually the action hook would be ‘publish_post’ or ‘publish_page’ but those hooks only work for Posts and Pages. […]

How to create a new WordPress array ?

So you have a set of data stored in an array and you want to put aside or create a new array with certain data. There is a powerful function called wp_list_pluck() and wp_list_filter() that can be used for such tasks with any sort of datasets. For example consider the following array: First of all […]

How to use PayPal standrad with reccuring method.

Use this bellow html form into your code : Name Required or Optional Description Character Length business Required Your PayPal ID or an email address associated with your PayPal account. Email addresses must be confirmed. item_name Optional Description of item being sold (maximum 127 characters). If you are collecting aggregate payments, this can include a […]

How to integrate DIBS payment gateway api in php ?

Integrating DIBS payment Gateway(Redirect method and API method)   HTML Form Redirect method Integrating DIBS payment Gateway is Simple ,You need to create a test account in dibs and with those details we can integrate dibs in your application Integrating via redirect method or server post method After the saving the buy details just save […]

Paginate WordPress posts with a thumbnail image

Its always nice to give your website users the ability to paginate through your posts, and there are a couple of simple inbuilt functions that will allow you to do so from with in the individual posts, by that I mean these functions should be used on the single.php template or single-{post-type}.php template. By using […]

How to get thumbnail of YouTube video link using YouTube API?

Each YouTube video has 4 generated images. They are predictably formatted as follows: The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: For the high quality version of the thumbnail use a url similar to this: There […]