WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: TD Word Count] Here is how to upgrade this plugin to WordPress 2.5 (2 posts)

  1. Pinoy.ca
    Member
    Posted 5 years ago #

    Here is how to upgrade this plugin to WordPress 2.5: Change

    $anames = $wpdb->get_results("SELECT ID, user_nicename FROM $table_prefix" . "users;");

    to

    $anames = $wpdb->get_results("SELECT ID, user_nicename FROM $wpdb->prefix" . "users;");

    and

    $posts = $wpdb->get_results("SELECT ID, post_content, post_status, post_date, post_title, post_author, post_type FROM $table_prefix" . "posts ORDER BY ID;");

    to

    $posts = $wpdb->get_results("SELECT ID, post_content, post_status, post_date, post_title, post_author, post_type FROM $wpdb->prefix" . "posts ORDER BY ID;");

    then either publish or re-save any post.

    http://wordpress.org/extend/plugins/td-word-count/

  2. Jeidai
    Member
    Posted 5 years ago #

    Thanks for posting this. :D I can't find any other plugin that does what this does and works with the recent version of WordPress...

Topic Closed

This topic has been closed to new replies.

About this Topic