December 27th in Wordpress by pbu .

Tutorial: How to write a WordPress Plugin?

wpplugin

WordPress is not just a blogging platform and it is such a powerful CMS with unlimited capabilities, besides having a huge user base. Almost anything can be scripted with wordpress. You can extend wordpress either by means of plugin or by a theme.

In this tutorial, i will show you how to write a Hello World wordpress plugin, which unlike many believe is surprisingly easy, once you understand the very fundamentals. All you need to have is a basic knowledge of …

December 24th in Wordpress by pbu .

Best affiliate plugins for WordPress!

I have been recently in search for wordpress plugins so that i could place my affiliate code on blog posts.

The following are some the best plugins i have seen and can come in handy for your affiliate campaigns.

WP-Affiliate for easy affiliate link masking.
GoCodes Plugin lets you create shortcut affiliate links.
Affiliate Plus lets your registered members get credit for referral.
Affiliate Manager for banner campaigns and market leverage
Affiliate Hide Plugin – hides and redirect affiliate links
Pretty Link – URL shortner for your …

December 24th in Wordpress by pbu .

WordPress similar posts plugin not working?

I have been struggling to make this plugin working ever since i have upgraded to wordpress 2.9 version. No matter how many times i changed the setting, everytime i get this nasty message

“Posts None found”

no matter what.  I did place the similar_posts() code in the single.php page.

I have heard that the reason could be the problem with index and solution is to re-create the index from the admin settings menu. I installed the plugin and tried to re-create the index …

December 23rd in Wordpress by pbu .

Affiliate Hide – Free wordpress plugin to redirect affiliate links!

A very simple and useful WordPress plugin to hide/cloak and redirect affiliate links based on custom fields. All you have to do is create a custom field `URL` in your wordpress post and specify the affiliate link there. This plugin can come in handy for gallery wordpress blogs where you are listing products or themes or services. Checkout this site and see how this plugin is practically used.

This plugin masks the affiliate links like shown below.

http://yourblog.com/jump/33 ——-> http://example.com
http://yourblog.com/go/33/ ——-> …

December 22nd in Wordpress by pbu .

How to manually upgrade wordpress from older versions

If you have a good old version of version of wordpress, then most probably you dont have automatic upgrade option and you have to do the upgrade manually. All new versions of wordpress have automatic upgrade option where you have to go to wp-admin > Tools > upgrade and all done with one click.

Here are the instructions you should follow if you are upgrading your wordpress from older versions.

Before you do anything.

Backup all wordpress files, mysql database.
Note down the …

December 22nd in Wordpress by pbu .

Problem with Custom rewrite rule in WordPress

I was working with rewriting a custom rule for my wordpress plugin and i had a strange problem.

function aff_add_rewrite_rules( $wp_rewrite )
{
$new_rules = array(
‘^redirect/([0-9]+)/$’ => ‘index.php?go=$matches[1]‘); //question mark ? resolves the problem

$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}

The above rewrite rule

^redirect/([0-9]+)/$’ => ‘index.php?go=$matches[1]

simply refused to work, but it works for

^redirect/(.+)$’ => ‘index.php?go=$matches[1]

(.+) means anything including alphabets and numbers.

I only wanted the rewrite rule to accept numbers, not just anything and after researching a log, …

December 22nd in Wordpress by pbu .

Fix ->Wordpres plugin could not be activated fatal error cannot redeclare!

I have seen this error thrown up many many times while activating a wordpress plugin and the

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare similar_posts() (previously declared in /home/pbu/public_html/blog/wp-content/plugins/xxxx/xxxx:45) in /home/pbu/public_html/blog/wp-content/plugins/x/xxxx.php on line 46

The main reason why the plugin could not be activated is because there must be either a plugin clash using same function or a wordpress theme calling the plugin function using the same name ie. double declaration.

Placing the plugin code in …

December 22nd in Wordpress by pbu .

Where does wordpress store htaccess rewrite rules?

If you are thinking for one second the rules are stored in .htaccess in the wordpress folder, you are totally wrong. Infact these rules are stored in mysql database in the wp_options table under rewrite_rules field.

Checkout this site for complete list of wordpress 2.x rewrite rules

Although it is common for most php related applications save all the rules in htaccess files, it is not the case with wordpress.

which is why you will see only the default rules when you …

December 14th in Wordpress by pbu .

Affiliate Hide v1.0 – Free WordPress plugin to Hide & Redirect Affiliate Links

A very simple and useful WordPress plugin to hide/cloak and redirect affiliate links based on custom fields. All you have to do is create a custom field `URL` in your wordpress post and specify the affiliate link there. This plugin can come in handy for gallery wordpress blogs where you are listing products or themes or services. Checkout this site and see how this plugin is practically used.

NOTE: MOVED HERE (New Version 1.2)

This plugin masks the affiliate links like shown …

November 24th in Wordpress by pbu .

Fix -> Fatal error – Call to undefined function: screen_icon() in WP-Pagenavi Plugin

WordPress WP-PageNavi plugin will throw up this error in wordpress admin area if you are using older versions of wordpress and have not updated to latest one.

Fatal error: Call to undefined function: screen_icon() in html/wp-content/plugins/wp-pagenavi/pagenavi-options.php on line 109

To fix:

1. Either update your wordpress to latest version (or)

2. Download the older version WP-PageNavi plugin which works for your wordpress version.

In this way i fixed the problem in my blog.

 Page 2 of 5 « 1  2  3  4  5 »