October 28th in Wordpress by pbu .
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 Miscellaneous by pbu .
It is very easy to change admin menu labels for your clients, with a custom admin panel. For example, you might want to change “Posts” to “Articles’
All Posts —> All Articles
Add New —> Add New Article
Posts –> Articles
I have seen the best wordpress plugin to accomplish this task is Admin …
October 28th in Wordpress by pbu .
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 pbu .
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 pbu .
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 Miscellaneous by pbu .
I have always wanted to send approval emails to my users when their post is published by editors or admins. I hated the using plugins for such small tasks, as i am already using so many plugins in my website.
Here is the code, which you need to paste in on …
October 28th in Wordpress by pbu .
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 pbu .
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 pbu .
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 16th in Miscellaneous, PHP Scripts by pbu .
As a owner of Corpocrat.com, I was recently interviewed by SelfBlogger.com and i was really proud to share my struggles and experiences and i came a long long way to acheive my goals. I answered on various topics including blogging, making money and career goals. You can read my interview …