How to remove mysterious blank lines in Dreamweaver

I don’t understand why it happens, but after uploading and downloading files, via ftp, occasionally blank lines appear every other line in my code. I do however understand how to get rid of them with Dreamweaver. Using the Find and [...]

Output Page Variables

Output the variables of a particular WordPress page or post echo "<pre>"; print_r($wp_query->query_vars); echo " “;

Remove Buddypress Admin bar

define( ‘BP_DISABLE_ADMIN_BAR’, false );

Popular posts by comments

1 2 3 4 <?php $pop = $wpdb->get_results("SELECT id, post_title, comment_count FROM {$wpdb->prefix}posts WHERE post_type=’post’ ORDER BY comment_count DESC LIMIT 10"); foreach($pop as $post) : ?> <?php echo $post->post_title; ?> <?php endforeach; ?>

Call jquery in wordpress

1 <?php wp_enqueue_script("jquery"); ?>

WordPress blogroll or links import and export

wp-links-opml.php if you put that after the site URL you can then save the code and import in to new site (using blogroll import) and it will bring in the blogroll wp-links-opml.php if you put that after the site URL [...]

WordPress 3 Multisite Network

/** Sets up WordPress Network for multisite. */ 1 define(’WP_ALLOW_MULTISITE’, true);

Remove WordPress Generator Meta

Add to the functions 1 remove_action(’wp_head’, ‘wp_generator’);

Remove a category from the RSS feed

Add this to the function.php file: 1 2 3 4 5 6 7 8 <?php function myFeedExcluder($query) { if ($query->is_feed) { $query->set(’cat’,'-143′); } return $query; } add_filter(’pre_get_posts’,'myFeedExcluder’); ?>