Michael Fields
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Rewrite a function to show first pic as thumbHere’s my solution: http://wordpress.pastebin.com/uTPVTyEq
Forum: Fixing WordPress
In reply to: fopen() Cron ErrorThanks! Did you or anyone else ever find a workaround? It’s glad to hear that this is not a big issue, but sometimes I will wait 8-10 seconds for the page to load and then this error will appear.Which is not a crisis but can be a bit annoying when constantly refreshing pages during development.
Forum: Plugins
In reply to: [Taxonomy Images] [Plugin: Taxonomy Images BETA] Return only the image url?This is how you get the uri to the originally uploaded image on a taxonomy archive. Unfortunately, I cannot find a simple method to get a intermediate uri. Got this on the list for the next release though.
global $taxonomy_images_plugin, $wp_query; if( isset( $taxonomy_images_plugin->settings ) ) { $term_tax_id = 0; $taxonomy = $wp_query->get_queried_object(); if( isset( $taxonomy->term_taxonomy_id ) ) { $term_tax_id = $taxonomy->term_taxonomy_id; } if( array_key_exists( $term_tax_id, (array) $taxonomy_images_plugin->settings ) ) { $image_id = $taxonomy_images_plugin->settings[$term_tax_id]; print wp_get_attachment_url( $image_id ); } }Forum: Plugins
In reply to: [Taxonomy Widget] [Plugin: Taxonomy Widget] Change 'Please Choose'No problem. Please mark thread as resolved if this solved your problem.
Forum: Plugins
In reply to: [Taxonomy Widget] [Plugin: Taxonomy Widget] Change 'Please Choose'Right on. Looks at the bottom two code snippets in my post above. One changes only categories while the other changes only tags. You can use the same type of filter for any custom taxonomy that you have set up. The filter slug is dynamic:
‘taxonomy-widget-show-option-none-taxonomy-name‘
Forum: Plugins
In reply to: [Taxonomy Widget] [Plugin: Taxonomy Widget] Change 'Please Choose'Do you have 2 dropdowns for the same taxonomy on one page?
Maybe try:
<h2><u>Watch</u></h2> <?php // Full Episodes if ( is_front_page() && !is_paged() ) { print 'Full <a href="http://www.fancast.com/tv/Greys-Anatomy/5040/full-episodes" target="_blank">Greys Anatomy</a> Episodes'; } ?> <br /><br />Forum: Plugins
In reply to: [Taxonomy Widget] [Plugin: Taxonomy Widget] Change 'Please Choose'Great idea. I added this to the latest release + fixed a few minor issues with WP_DEBUG set to true. As of version 0.3, you can now filter the text. Here are a few examples:
/** * Filter dropdown text for all taxonomies. */ add_filter( 'taxonomy-widget-show-option-none', 'mytheme_show_options_none' ); function mytheme_show_options_none( $text ) { return 'Custom text for all taxonomies.'; } /** * Filter dropdown text for the category taxonomy. */ add_filter( 'taxonomy-widget-show-option-none-category', 'mytheme_show_options_none_category' ); function mytheme_show_options_none_category( $text ) { return 'Custom category text.'; } /** * Filter dropdown text for the post_tags taxonomy. */ add_filter( 'taxonomy-widget-show-option-none-post_tag', 'mytheme_show_options_none_tags' ); function mytheme_show_options_none_tags( $text ) { return 'Custom tag text.'; }Forum: Plugins
In reply to: plugin for postsYou can remove them by using query_posts() or Create a custom post_type for them.
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] Show image within single.php ?Maybe a very slight modification will do the trick:
<?php print do_shortcode( '[taxonomy_image_plugin]'); ?>🙂
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] Show image within single.php ?Thanks! Does the menu page have any sections associated with it?
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] Remove an image linked to a taxonomy term?As of version 0.5 you can remove term/image associations.
riasaurusrex – I just release a new version (0.5) of the plugin and I think that I have a decent fix in place for this issue. The trick was getting the button to display only within the thickbox. Let me know your thoughts if you try out the new version.
Forum: Plugins
In reply to: [Plugin: Taxonomy Images BETA] Show image within single.php ?<?php do_action( 'taxonomy_image_plugin_print_image_html', 'detail' ); ?>is only meant to be used in taxonomy template. If I remember correctly, it is not meant to be used in single posts or pages. Try this instead:
<?php do_shortcode( '[taxonomy_image_plugin]' ); ?>More information here:
Forum: Plugins
In reply to: plugin for postsMaybe you could create a category called “case studies” and add posts to this category.