Home » Archive

Articles in the Wordpress Category

  Posted: Mar 08 | Filed under: Wordpress

To edit the layout of the password-protected page open the following file:

/wp-includes/post-template.php

This will allow you to change the submit form. Search for the following line:
function get_the_password_form() and you can start editing!

  Posted: Dec 27 | Filed under: Wordpress

Guide to fix popularity contest, a very popular WP Plugin!

Open popularity-contest.php and scroll down to line 59. Replace require(’../../wp-blog-header.php’); with require(’../wp-blog-header.php’);

If you get the following error:
wp_ak_popularity_options’ doesn’t exist on line: 124, then you will have to add the tables manually:

    CREATE TABLE IF NOT EXISTS `PREFIX_ak_popularity` (
    `post_id` int(11) NOT NULL,
    `total` int(11) NOT NULL,
    `feed_views` int(11) NOT NULL,
    `home_views` int(11) NOT NULL,
    `archive_views` int(11) NOT NULL,
    `category_views` int(11) NOT NULL,
    `single_views` int(11) NOT NULL,
    `comments` int(11) NOT NULL,
    `pingbacks` int(11) NOT NULL,
    `trackbacks` int(11) NOT NULL,
    `last_modified` datetime,
    KEY `post_id` (`post_id`)
    ) ENGINE=MyISAM;
 
    CREATE TABLE IF NOT EXISTS `PREFIX_ak_popularity_options` (
    `option_name` varchar(50) NOT NULL,
    `option_value` varchar(50) NOT NULL
    ) ENGINE=MyISAM;

Enjoy the holidays!

  Posted: Oct 02 | Filed under: Wordpress

Well did you ever use the command “query_posts(’cat=-xx’);” to exclude certain posts from your main page? I did!
Recently I found out that my pagenavi was no longer working.


A solution is to get this plugin that provides cms-like functions to exclude certain categories completely from specific parts of your blog.


If you don’t want to exclude posts from the sidebar you might also want to take a glance at this plugin: Simply Exclude

  Posted: May 17 | Filed under: Wordpress

I noticed that there is a small bug in Wordpress 2.3 if you are using seo friendly url’s.
The “Trackback” and “Subscribe to the comments feed” links on the single.php have two slashs at the end and return a 404 page.
If you want to fix that open: /wp-includes/link-template.php
Find “get_post_comments_feed_link” and remove “trailingslashit(” as well as the closing round bracket after “($post_id)”.

  Posted: May 11 | Filed under: Wordpress

For a developer loading speed is a crucial factor, therefore it is necessary to check how many SQL queries are needed to build a page.

To do that in Wordpress add this code anywhere in your template and it will show the queries that are needed until that specific part. If you want to know how many queries are needed for loading the full page then put the code in the footer.php

<? php echo get_num_queries(); ?>

You are able to use it several times inside your template, so insert it anywhere as many times as required.That’s great for locating potential “troublemakers”

Source:Playworkplay.com

  Posted: May 06 | Filed under: Wordpress

get_highest_rated is defined at postrating-stats.php and is responsible for displaying the content as well.