Wordpress Technology

Wordpress Tips, Tutorials, Hacks

Disable Default WordPress Widgets

To deactivate the unneccessary default WordPress Widgets just insert next code in your functions.php file of your current theme. The following code should be adjusted depending on your needs; Originally posted 2010-07-27 14:59:29. Republished by Blog Post Promoter

Add Post Name to Body Class

Sometimes doing the css layout, we need to assign the specific class name to the body tag. To achieve the task, the only thing you have to do is to copy the following code and paste it on your theme functions.php file. Once saved, the post/page name will be automatically be added to the body [...]

Remove Autolinks in Comments

To remove automatic links of urls in comments, simply open your functions.php file and paste the following code: remove_filter(‘comment_text’, ‘make_clickable’, 9); Now you can say bye to to spammy links in comments. Originally posted 2010-10-25 16:23:35. Republished by Blog Post Promoter

How to get sitename

How to get sitename network_site_url( ‘/’ ); Originally posted 2012-04-04 07:01:33. Republished by Blog Post Promoter

How to Add a Favicon to WordPress Blog

Find the famous functions.php file of the current theme and insert next code in it. function childtheme_favicon() { ?> <link rel="shortcut icon" href="<?php echo bloginfo(‘stylesheet_directory’) ?>/images/favicon.png" > <?php } add_action(‘wp_head’, ‘childtheme_favicon’); You are done. Sweet and simple. Don’t forget to change the favicon url. If the wp_head() function is not implemented the code will not [...]

wp-o-matic Quick Duplicate Post Fix

Archived; click post to view. Excerpt: If u are reading this post you probably have problem using wp-o-matic regarding the posts duplicates. Lots of duplicates pop up when wp-o-matic creates new posts. The elegant and simple solution is found and presented below. Instead of fixing wp-o-matic plugin the wordpress file post.php will be changed. Here [...]

Preventing from duplicate posts. Another hack to fix the wp-o-matic bug related to posting the duplicate posts. Open up wpomatic.php Replace Originally posted 2010-09-18 14:59:04. Republished by Blog Post Promoter

Hidden WordPress Settings

Many users of FireFox and Opera should know what the about:config means. ( It is a page with all current settings and plugins installed in the browser). Did you ever know that there is a similar special setting page for WordPress? If you try http://your-blog/wp-admin/options.php the page with the settings appears and you can review [...]

Eliminate Comment Spam

Archived; click post to view. Excerpt: Every blogger knows that comment spam is such a pain. Akismet is good solution, but not always. Why not to block spammers, instead of mark them as spam or suspicious as a spam. The code below looks for HTTP reffere in the request header and blocks the comments if [...]

Plugin Directory and URL in WordPress

Using PHP functions to find the directory and url of current script might give you wrong result. However, there is a better way in WordPress to find plugin directory and URL. Originally posted 2010-08-11 00:58:05. Republished by Blog Post Promoter

© 2009 | Made by Vancouver Web Design | Internet Marketing