Thumbnails and Lightbox

Thank you Jeremy Jared. I applied the following solution, based on yours ( Any good lightbox-like option that works in WP 3.2.1? ) First of all, now I call my thumbnail with the following code instead of trying to add the link myself: wp_get_attachment_link(get_post_thumbnail_id(), ‘thumbnail’); Then, I add your filter in function.php /************************* * Lightbox … Read more

Get object terms with no children?

I have written this function some time ago, it may be a bit sloppy but it does it’s job: function get_low_level_term( $taxonomy ) { $term = null; if( is_single() ) { global $post; $terms = get_the_terms( $post->ID, $taxonomy ); if( count( $terms ) == 1 ) { foreach( $terms as $t ) { $term = … Read more

Modify plugin and submit to directory

It depends on the license of the source plugin. In case you’ve downloaded that plugin from WordPress Plugins Directory, then you can modify and upload it as it inherits the GPLv2 license of WordPress itself or GPLv2-compatible license of the modified plugin. Here are some guidelines. Also, it’s polite to mention the original author (“Inspired … Read more

Override typo in multiple parent theme files?

You can override it, but you’ll have to create Child-Theme versions of archive.php, attachment.php, and single.php. Since it’s a translation string, you might be able to do something hackish, like provide a en_US.MO file that translates “Filled under” as “Filed under” (or whatever you want). But that gets tricky – and This Theme appears to … Read more

Custom Taxonomy Archive URL rewrite

WordPress doesn’t generate an ‘archive of terms’ automatically. However, you’re current permalink structure is set up so that: www.example.com/my_taxo/my-term points to the ‘my-term’ archive page of the ‘my_taxo’ taxonomy (listing all posts with the ‘my-term’ tag). So what you can do is create a page with slug ‘my_taxo’: www.example.com/my_taxo Assign this page a custom template … Read more