Twenty Eleven theme, how to change style to a specific “format”

Targeting the whole page First, ensure that you’re calling body_class() inside of the HTML <body> tag: <body <?php body_class(); ?> Then, you can take advantage of the post format-specific classes output by body_class() to style according to your needs. Single blog posts use the class single-post-format-{format} body.single-format-aside {} Archive index pages for a post format … Read more

display only parent replies count in index.php

Based on this answer I suggest the following code: // the theme’s functions.php /** * Get the number of top level comments for a post. * * @param int $post_id * @return int */ function wpse_95242_top_level_comments_for_post( $post_id = NULL ) { if ( NULL === $post_id ) $post_id = get_the_ID(); if ( ! $post_id ) … Read more

Create Table Failed Column Date DateType

Well, after looking at the other tables I had created successfully, only difference was the description column. Apparently WordPress or MySQL doesn’t like that as a column name and somehow has it reserved. So, after renaming it, the table was created fine. Hope this helps someone else in the same boat.