Expire WordPress Post After Specific Time

By: Prem Tiwari | Last Updated: | In: WordPress Snippets


I am writing this snippets hacks because of getting more request from my blog readers. This snippets is very useful when you are running a promotional coupons code for your products and you want to it automatically expire after a certain period of time. So you can remove it automatically using this code. Go to …

Yii framework Pagination Using CListView and CLinkPager

By: Prem Tiwari | Last Updated: | In: Yii framework


In this post i explained to implement the Yii framework Pagination Using CListView and CLinkPager. From my limited test, what I found is that by defining a custom pager ourselves, Yii will use the limit and offset when querying, correct me if I am wrong. We can change the pager properties and make new look …

Create dynamic Tabs using jQuery and css

By: Prem Tiwari | Last Updated: | In: Javascript & Ajax, Web Technologies


I am going to explain the easy and simple process to Create dynamic Tabs using jQuery and css. Tabs makes a sense when you have a limited screen space and you want display the huge data. CSS Code

Javascript Code

Html Code<html lang=”en”> <head> <meta charset=”utf-8″ /> <title> www.freewebmentor.com | Create dynamic Tabs …

Import CSV File Data in Mysql Using PHP Code

By: Prem Tiwari | Last Updated: | In: PHP Tutorial


This is the easy method to upload/import your csv file data in mysql table, using the simple php code. We are using the ( PHP-PDO ) for the communicates with mysql database. Below is the easy and simple steps for using this code. Create a mysql table using the below code : Create database table …

Important Snippets You Should Implement In Every Website

By: Prem Tiwari | Last Updated: | In: WordPress Snippets


In today’s post i will explain some important code snippets which you should know and need to implement in every website. Enable shortcodes in widgets You can use your plugin shortcodes in your widgets like the way you use them in your posts and pages. SEO Friendly URL Using htaccess File Change the admin login …

create and call procedure in mysql ( Updated 2016 )

By: Prem Tiwari | Last Updated: | In: Mysql, Oracle


In this post i will explain how to create store procedure in mysql and how to call store procedure in PHP for select, insert, update and delete data from mysql table. A stored procedure has a header and a body using to declarative SQL statements stored inside the database catalog. There are three different ways …

Highlight Current Page in Menu Bar

By: Prem Tiwari | Last Updated: | In: WordPress Snippets


Highlight the current navbar in your wordpress theme. It is very easy and simple follow the below instructions : Open your current activated theme’s style.css file. Copy the bellow code and paste it at the bottom of style.css page and save it.Got to your site front-end and refresh the page. You done. enjoy!

Seo Friendly URL Using Htaccess

By: Prem Tiwari | Last Updated: | In: PHP Tutorial, seo


SEO (Search Engine Optimization) is the most important part in web development. After developed your website your website needs do proper SEO to promote your contents with relevant users. There are few trick which will help to boost your website’s SEO score. Benefits of SEO Friendly URL : I am going to explain how to …

Easy Steps To Create a WordPress Plugin

By: Prem Tiwari | Last Updated: | In: Plugins, WordPress, WordPress Beginners


Writing a Plugin I have added this post because I got many requests. In this article i will describe the easy and simple steps to create the wordpress plugin. WordPress Plugins allow to easy modification, customization, and enhancement in a WordPress blog or website.   Standard Plugin Information Add the header information in top of …

How To Create Contact Form in drupal 7

By: Prem Tiwari | Last Updated: | In: Drupal, Drupal Beginners


This article will describes, how to enable the contact form in drupal 7. The Contact module allows site visitors to send emails to the site administrator. You can specify the text to display on your contact us page and you can also restricted limits, how many times a user can submit a contact form. How …