WP-Footnotes to YAFootnotes

While moving Darkmatter journal from WP-Footnotes plugin to YAFootnotes plugin (custom tweaked, moved because YAFootnotes was easier for writers/reviewers) we bumped into a problem: a lot of older posts used the old syntax. We had three choices:

  • Leave WP-Footnotes plugin for older posts (different look and feel, one more plugin using up resources)
  • Change posts by hand (lots of posts)
  • Create a script to update all older posts who used old syntax.

I choose to create a script. After it was done I saw that it could be made into WordPress plugin with minimal work, so: download WP-Footnotes to YAFootnotes

Update:

It's available at WordPress plugin repository too: WP-Footnotes to YAFootnotes.

Plugins in WordPress

Numerous sites use plugins to expand functionality offered by WordPress.  A lot of good plugins emerge and fight for a place under the sun. For various reasons I have worked with a lot of plugins and would like to make a public list of plugins I have found to fit my needs.

Ajax Plugin Helper

Very good if one uses a lot of plugins as greatly reduces the time needed to spend updating other plugins.

WordPress, version 2.9 introduced batch updating plugins thus diminishing this plugins usefulness, but still - it's a good plugin.

Akismet

Comes along with your default Wordrpress installation, to enable one must get a key (free and easy to add). Reduces spam comments, standard plugin to fill this need for hundreds of thousands WordPress users. Continue reading Plugins in WordPress

Co-authors author list bug

There is a bug inside Co Authors and Co Authors Plus plugin, coauthors_wp_list_authors function, where co authors without their own posts doesn't get links to their posts: http://wordpress.org/support/topic/275644

The bug is inside this sql statement:

$author_count = array();
 $sql = "SELECT DISTINCT
 p1.post_author,
 (COUNT(ID)+(SELECT COUNT(*)
 FROM $wpdb->posts p2, $wpdb->postmeta pm
 WHERE p2.ID = pm.post_id
 AND pm.meta_key = '_coauthor'
 AND pm.meta_value = p1.post_author)
 ) AS count
 FROM $wpdb->posts p1
 WHERE post_type = 'post' AND " . get_private_posts_cap_sql( 'post' ) . "
 GROUP BY post_author";

Continue reading Co-authors author list bug