Michael Fields
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] When will version 0.4.3 be released?grandslambert,
Thanks for the kick in the pants:) I just updated the plugin to version 0.4.3. It should be appearing momentarily. Feel free to let me know if there’s anything that I can do to make support with your plugin easier. I will also be releasing another plugin soon that may be of benefit to you project. It allows users to shorten the term descriptions as well as remove certain columns from the terms administration panel… sometimes it gets crowded in there. A link would be awesome! I’ll be sure to reciprocate:)Best wishes,
-MikeForum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] Remove an image linked to a taxonomy term?sofimi,
You just reminded why this plugin is still in beta! Sorry, but as of the moment no there is not. I need to set up some time in the coming week to make updates. And this is going at the top of the list.Forum: Your WordPress
In reply to: Feedback on my first WordPress Plugin?Yes, xampplite on Windows XP.
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] upgraded to 3.0rc3 images disappearedSorry, got side-tracked with PayPal IPN stuff…. I still have to re-figure the support for 2.9.2 before I upload it.. might be tomorrow.
Here’s a link to the code for taxonomy-images.php if you’re in a hurry 🙂
Forum: Your WordPress
In reply to: Feedback on my first WordPress Plugin?I tried to install it but was greeted with the following error:
in 3.0-RC3
Parse error: syntax error, unexpected $end in ...\wp-content\plugins\sharebar\sharebar.php on line 157and in 2.9.2
Parse error: syntax error, unexpected $end in ...\wp-content\plugins\sharebar\sharebar.php on line 157Forum: Alpha/Beta/RC
In reply to: is_taxonomy() does not recognize custom taxonomiesI can verify that is_taxonomy() does in fact work on custom taxonomies. The issue that you are most likely experiencing is that you are calling the function too early. The following two examples should illustrate:
add_action( 'init', 'is_there_a_doggie_treat_taxonomy', 0 ); add_action( 'init', 'create_doggie_treat_taxonomy', 50 ); add_action( 'init', 'is_there_a_doggie_treat_taxonomy', 100 ); function is_there_a_doggie_treat_taxonomy() { print ( is_taxonomy( 'doggie-treat' ) ) ? '<p>We Have Treats!</p>' : '<p>No Treats for you!</p>'; } function create_doggie_treat_taxonomy() { register_taxonomy( "doggie-treat", 'post', array( 'hierarchical' => true, 'label' => 'Doggie Treats', 'singular' => 'Doggie Treat', 'update_count_callback' => $tax['update_count_callback'], ) ); }So, we’ve hooked into init 3 times. First we have checked to see if our taxonomy exists at 0. Unfortunately , it does not yet exist. At 50, we create the taxonomy and when we check for it again at 100, it is there.
I would try hooking the function a little later.
Best,
-MikeForum: Themes and Templates
In reply to: How can I get wp_list_pages separated by commasAdd this code to functions.php:
class Walker_Page_Comma_Separated_List extends Walker { var $tree_type = 'page'; var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); var $separator = ', '; var $el_count = 1; function start_lvl(&$output, $depth) { $output .= "<p>\n"; } function end_lvl(&$output, $depth) { $output .= "</p>\n"; } function start_el( &$output, $page, $depth, $args, $current_page ) { $output.= ( $this->el_count > 1 ) ? $this->separator : ''; $this->el_count++; extract($args, EXTR_SKIP); $href = get_page_link( $page->ID ); $title = apply_filters( 'the_title', $page->post_title ); $output .= '<a href="' . $href . '" title="' . esc_attr( $title ) . '">' . $link_before . $title . $link_after . '</a>'; } function end_el( &$output, $page, $depth ) { $output .= ''; } }and this code where you would like the list to be displayed in you theme:
$walker = new Walker_Page_Comma_Separated_List(); wp_list_pages( array( 'title_li' => '', 'walker' => $walker ) );Best Wishes,
-MikeForum: Fixing WordPress
In reply to: How check if a post belong to a given taxonomyForum: Themes and Templates
In reply to: 2010 drop header image – filter?You should be able to override the
twentyten_setup()function just be defining it in your child theme’s functions.php file. Last time I checked, the child theme’s function.php is loaded before the parent’s allowing for functions defined in the parent to be overridden if they are conditionally defined usingif( !function_exists('function_name') ). The twentyten_setup() function is defined in this manner.I would copy the entire function declaration into your child theme and hack away at it. If this solution does not work for you, I would suggest that you fork the theme. This is what I personally did.
Best Wishes,
-MikeForum: Alpha/Beta/RC
In reply to: Featured image meta box gone in RC3Mine’s still there.
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] upgraded to 3.0rc3 images disappearedThere isn’t any documentation. You need to read the code 😉
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] upgraded to 3.0rc3 images disappearedI was able to fix the main issue which was a change in the names of the filters that core provides us to hook into the term rows and header for the terms.
I’ve also added use of taxonomy_exists() instead of is_taxonomy(). Thanks for the tip!
The next release will be 0.4.3 and should be up in an hour or two.
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] upgraded to 3.0rc3 images disappearedQuick question: is the plugin still functioning on the front-end?
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] upgraded to 3.0rc3 images disappearedLooking into this now, it’s most likely a change to the names of a few hooks. No need to worry- should be an easy fix + all of your image associations are safe.
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] No button to add image to categorybianca,
I think that I know what you mean now. This is a quirk of the plugin. The “Add image to Taxonomy” button only appears in the “Media Library” section. It will not appear immediately after you upload the image. Please view the screencast for exact information about how the plugin is intended to work.