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

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

Pagination Help on Crazy Custom Authors Page

I doubt you’re going to be able to repurpose WP-PageNavi for this, since you’re not using the built-in queries at all. You should be able to roll pagination yourself, though, and still fall back on some of WordPress’s built-in functionality. In particular, if your URL matches the pattern /meet-the-team/page/3/, the paged querystring variable will automatically … Read more

Integrating the WordPress admin panel with a frontend theme

To override the CSS on the admin side (in order to make it match your theme) you can enqueue your own css: function admin_custom_css() { wp_enqueue_style( ‘stylesheet_name’, ‘stylesheet.css’) }; add_action(‘admin_enqueue_scripts’, ‘admin_custom_css’ ); This will insert your custom css on every admin page. See this answer for how to do this for certain admin pages only: … Read more

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