Subscribe via RSS Feed Connect on Google Plus

Wordpress

Adding Tweet Button to Posts

4 March, 2015 0 Comments
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
   <a href="http://twitter.com/share" class="twitter-share-button"
      data-url="<?php the_permalink(); ?>"
      data-via="wpbeginner"
      data-text="<?php the_title(); ?>"
      data-related="syedbalkhi:Founder of WPBeginner"
      data-count="vertical">Tweet</a>

Added to both single.php and index1.php
http://www.wpbeginner.com/wp-tutorials/how-to-add-twitters-official-tweet-button-in-wordpress/

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’);

http://wp-snippets.com/exclude-category-from-homepage/

Seo wordpress plugin by www.seowizard.org.