Subscribe via RSS Feed Connect on Google Plus


Adding Tweet Button to Posts

4 March, 2015 0 Comments
<script src="" type="text/javascript"></script>
   <a href="" class="twitter-share-button"
      data-url="<?php the_permalink(); ?>"
      data-text="<?php the_title(); ?>"
      data-related="syedbalkhi:Founder of WPBeginner"

Added to both single.php and index1.php

Exclude category from homepage

4 March, 2015 0 Comments

To exclude some categories from the the loop on the frontage, you can use this snippet in your function.php.

function excludeCat($query) { if ( $query->is_home ) { $query->set(‘cat’, ‘-3,-5,-23’); } return $query; } add_filter(‘pre_get_posts’, ‘excludeCat’);

Seo wordpress plugin by