There no doubt that Alex King’s Popularity Contest plugin is, excuse the pun, one WordPress’s most popular plugin ever. But Alex seems to be a bit to busy to maintain the plugin (?2007 being the last update) and there is a plethora of users out there asking about patches, fixes, new version etc.

I’m not sure when exactly the plugin stopped working and which ‘branch’ versions are the best, but last week I came across this version and it’s working great on one of my WP 2.7 installs so I’m including it here for those that are struggling to find a version that works.

Download Popularity Contest for WP 2.7 Version 1.3b
Popularity Contest for WP 2.7 (2265) - 12.92 KB
Tagged with:
 

WP Smart Sort Premium NOW SELLING!

It’s a week earlier than expected but things came together really well in the end, I’ve really enjoyed writing this plugin and hope that users really benefit from it. View all the bumf over the plugin’s official page.

 

WP Smart Sort v2 Released

It is official the long awaited v2 of this great plugin is now available at the Wordpress.org repository for download.

OFFICIAL Plugin Page on Dyasonhat

It was previously planned that this plugin might not feature sorting posts by custom fields but I’m glad to say that this functionality has been retained in this version and is better than ever.

Thank you to all those who offered words of encouragement during the process and the patience for it’s LONG arrival.

Enjoy sorting your posts by ANY field you like!!!

Tagged with:
 

Smart Sort Premium Development Update

smart-sort-logoProgress on our smart sort plugin is currently on target for release in next couple of weeks.

A decision has been made to release 2 versions of the plugin

    1. Free Version

    Will enable sorting of posts only
    Sorting will only be available on fields from the wp_posts table
    This essentially mean that sorting by: title, date added, date modified and comment count will be available.

  1. Premium version
    • Full set of features including sort/filter/search
    • Once off price of $35
    • …full feature list available soon.

A Demo of the plugin in action can now be seen over at http://wpsmartsort.dyasonhat.com/

Remaining Development

  • User customization of forms
  • Search form
  • Plugin API functions for advanced implementation.
Tagged with:
 

Wordpress: Get current context url

Edit: 10 Dec 2008. Changed select term_taxonomy_id to term_id.

There are many times when developing a plugin that I’ve wanted to easily get the url of the current context eg. if I’m in a category page I want the url of that page, and the same for tags archives etc.

The following function does this quite nicely.

</code>

function get_current_context_url(){
global $wp_query;
global $wpdb;

$url = '';
if (is_category()) {
$cat_id = $wp_query->query_vars['cat'];
$url = get_category_link($cat_id);
}
elseif (is_tag()) {
$tag_name = $wp_query->query_vars['tag'];
$tag_id = $wpdb->get_var("SELECT ".$wpdb->terms.".term_id FROM $wpdb->term_taxonomy
LEFT JOIN $wpdb->terms
ON (".$wpdb->term_taxonomy.".term_id = ".$wpdb->terms.".term_id)
WHERE ".$wpdb->terms.".slug = '$tag_name'
AND ".$wpdb->term_taxonomy.".taxonomy = 'post_tag'
LIMIT 1");
$url = get_tag_link($tag_id);
}
elseif (is_author()) {
$author_id = $wp_query->query_vars['author'];
$url = get_author_posts_url($author_id);
}
elseif (is_date()) {
$year = $wp_query->query_vars['year'];
$month = $wp_query->query_vars['monthnum'];
$day = $wp_query->query_vars['day'];

if ($wp_query->query_vars['day']) {
$url = get_day_link( $year,  $month,  $day);
}
elseif ($wp_query->query_vars['monthnum']) {
$url = get_month_link( $year,  $month,  $day);
}
elseif ($wp_query->query_vars['year']) {
$url = get_year_link( $year,  $month,  $day);
}
}
else {
$url = get_bloginfo('url');
}

//ensure trailing slash
if ("/" != substr($url, -1)) {
$url = $url . "/";
}
return $url;
}

<code>

Tagged with:
 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Simpler Computing - Wordpress Plugins - Help Desk Plugin