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 " “;
Poweron.co.uk is now mobile friendly!
As more and more people are using their mobile phones to browse the internet, we decided to make Poweron.co.uk mobile friendly. The issues with our regular site on a mobile browser were layout, load times, user experience and general compatibility. [...]
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’);


