If is_single in functions.php

Generally it’s not a common way to strip wpautop with remove_filter as it is native functionality of WordPress. But if you want to : place the remove_filter() function right before the the_content() function on the pages/templates where you don’t need the wpautop <?php remove_filter( ‘the_content’, ‘wpautop’ ); the_content();?>

How to add icon over specific thumb

The implementation can be purely CSS, and depends on your specific HTML markup. However, the class you’ll need to target is supplied by the post_class() template tag. Let’s say you have something like the following, basic markup: <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>> <div class=”post-title”> <img … /> <h1><?php the_title(); ?></h1> </div> <!– Etc. … Read more

how get number of twitter followers in wordpress

You would replace this: $dataOrig = file_get_contents(‘http://twitter.com/users/show/’.$twitter_user); if (is_wp_error($dataOrig)) { return ‘Error!!!’; }else{ $profile = new SimpleXMLElement ( $dataOrig ); $countOrig = $profile->followers_count; $count = strval ( $countOrig ); } With this: $dataOrig = wp_remote_get(‘http://twitter.com/users/show/’.$twitter_user); if (is_wp_error($dataOrig)) { return ‘Error!!!’; } else { $profile = new SimpleXMLElement ( $dataOrig[‘body’] ); $countOrig = $profile->followers_count; $count = … Read more

Change custom featured image size in twentythirteen child theme

The function that handles thumbnail size is already hooked with after_setup_theme in \twentythirteen\functions.php. There is no use adding a if (!function_exists()) in child functions.php because the child functions.php is always loaded before. So this would be more logical to find this in the parent file. The answer would be to set a different prority to … Read more