Post format selector in Thematic child theme post class

Okay, I’m going on the assumption that the real question is “how do I get Thematic to add the post-format to its body classes?” Try this in your functions.php: function my_thematic_post_format_class( $classes = array() ) { $format = get_post_format(); if ( ” == $format ) $format=”standard”; $classes[] = ‘format-‘ . $format; return $classes; } add_filter( … Read more

Is there a way to do multiple ordering on a multiple meta_query?

As of WordPress 3.4.1, there is no way, out of the box, to order by multiple meta values. Since we can’t do it cleanly, we’ll have to hack something together. We can hook into posts_orderby to manually modify the ordering. It’s not altogether pretty, but it will get the job done. Here’s an example: add_filter(‘posts_orderby’, … Read more

Getting rid of the #038; when string replacing content

& is essentially synonym of &. In the_title filter wptexturize() runs with priority 1 (important!) and makes this replacement. So by the time it gets to your format_title() at priority 11 – instead of replacing lone & symbol you replace (and break) chunk of & character entity. So you can: move your function to priority … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)