October 28th in Wordpress by .

WordPress – How to create a login protected page?

In this tutorial, i will how you how easy it is to login protect a page and then force users to login, to view the page.

1. Create a php file named “login-protect.php” in your current theme folder.

2. Place the following code in this file

<?php /*   Template Name:  Login Protect …

October 28th in Wordpress by .

WordPress – how to add custom field when post is published?

It is dead easy to set a custom field to your post, programmatically when the post is published. For example, whenever your post is published, you might want to add a custom field “submitted” and set its value to “1″, when a post is published.

Here is how you do it. …

October 28th in Wordpress by .

How to redirect when post submitted for review in WordPress

I was working recently on custom project and i wanted wordpress to redirect to a custom payment page, when somebody submits a post for review.  It was such a simple step and quite disappointed that there was no wordpress plugin to do this job. If it was in php, i …

October 28th in Wordpress by .

WordPress – Retrieve author/user details from Post ID

Very often in your projects, you want to pull out the author data, given a post id. It is very easy do it in wordpress.

It can be accomplished by the_author_meta() function or get_the_author_meta() function.You will need call this function in your theme or plugin, through a hook

the_author_meta() –> Outputs the …

October 28th in Wordpress by .

How to assign or remove user permissions in WordPress

In wordpress, it is very easy to add and remove permissions to your wordpress registered users. For example, you can set wordpress default user role to “contributor” which means those who register in your website, automatically become contributors and they will be able to post articles in your wordpress “pending …

October 18th in Wordpress by .

Published contributor posts cannot be deleted in WordPress!

User roles determine editing and deleting posts by your site users. The main difference between author role and contributor role is

Authors -> Create/Edit/Delete posts + Publish
Contributors -> Create/Edit/Delete before publishing  + Submit for review (cannot Publish) + Cannot Edit/Delete Published posts

The main difference is contributors, once posts are published,  posts …

September 19th in Wordpress by .

7 Useful WordPress plugins for Clickbank affiliates

clickba

If you are a clickbank affiliate, wanting to promote clickbank products, there are 2 ways you can promote clickbank products from your wordpress site. Either directly get the affiliate code and paste it on your wordpress website or use a wordpress plugin.

1. Hop Ad Builder

Use Hop Ad Builder from clickbank, …

September 11th in Wordpress by .

Best Tutorial Videos for WordPress Plugin Writing

wordpressplugin

Writing WordPress plugins  on your own can be difficult at first, unless you are experienced wordpress developer who perfectly understood the core functionality of wordpress. Fortunately wordpress plugin writing is easy to master once you have understood the basics.  I have compiled some the the youtube videos and i found …

May 14th in Wordpress by .

Fix: WordPress twenty ten theme shows no excerpt/summary!

2010screenshot

I was using latest version of wordpress and with default twenty ten theme i had difficulty in making wordpress show excerpt summary on home and category pages. Unlike previous wordpress versions, you can even find the_content() in index.php to change to the_excerpt().

Besides these i couldnt find any option in wordpress …

April 30th in Wordpress by .

30+ Best WordPress Themes for Personal Blogging from Themeforest

wordpress

I have been a great fan of designers from themeforest who have the knack of making some stunning wordpress themes. As much i love buying wordpress themes from themeforest, it really takes a lot of time to go through thousands of themes, seeing previews and pick the best ones i …