jfache
Forum Replies Created
-
It’s actually quite easy to limit the number of stored hashes, but the question is: what is the point of storing all the past hashes?
I’d love to know!
I lost 1 hour because of that.
No one should be allowed to call $wp_rewrite->flush_rules() outside of activation/deactivation hook.1. Thanks for this clear and simple explanation!
2. Right now I’m using
get_categories, but you’re right, I could useget_termsand take advantage of your wrapper: its main advantage over my simple function is its caching process I wasn’t aware of.So for my use case my function is actually useless. Might be simple and useful for single term queries though. A new
taxonomy-images-get-termfilter would make sense.Finally, I would have to agree with your filter approach: I like your arguments, and as you said, it wasn’t a lightly made decision – you proved it!
Thanks again.
Hi Michael,
1. You’re right, I didn’t notice that. It won’t be a problem for me. Do you know in which cases the
term_idand theterm_taxonomy_idfields are different though?2. My use case was pretty straightforward: I was listing my top level blog categories and I needed to print their associated images. I couldn’t figure how to do it with the default filters: did I miss something?
The reasons you gave for the “apply_filters approach” make sense, but I don’t know if *performance wise* it wouldn’t be better to stick to the classic “if function exists” approach. Once again I have no idea.
Thanks for your response anyway!
JeremyForum: Plugins
In reply to: [Taxonomy Images] [Plugin: Taxonomy Images BETA] Return only the image url?Hi there,
I just added this function to my functions.php to return the image attributes (url, width and height) of any size of any image associated with a term thanks to this plugin.
function get_tax_thumb_url($term_tax_id, $size = 'category-thumb') { global $taxonomy_images_plugin; if( isset( $taxonomy_images_plugin->settings ) ) { if( array_key_exists( $term_tax_id, (array) $taxonomy_images_plugin->settings ) ) { $image_id = $taxonomy_images_plugin->settings[$term_tax_id]; return wp_get_attachment_image_src( $image_id, $size ); } } }It should maybe be included in the plugin’s core.
Forum: Plugins
In reply to: [Hellocoton] Plugin HellocotonMême chose, le plugin est codé avec les pieds, le code est chargé mais le bouton ‘J’aime’ est masqué (display:none).
Si je trouve je reviens ici.
Forum: Plugins
In reply to: [CF Internal Link Shortcode] [Plugin: CF Internal Link Shortcode] Link imagesAs a matter of fact the plugin is still necessary. The internal linking support of WP 3.1 is just a way of browsing through your articles, it links posts via their possibly changing permalinks. This plugin links posts via their static IDs.
Forum: Plugins
In reply to: [CF Internal Link Shortcode] [Plugin: CF Internal Link Shortcode] Link imagesAccording to the plugin’s code, it can handle the “[link id=’123′]<img src=”pic.jpg”/>[/link]” formatting, but the content is HTML escaped by the plugin’s code as well, so the <img> tag doesn’t render.
I wonder why.