Please, enter a valid email!

15 Hacks to Pimp Your WordPress Website

Despite the general awesomeness of WordPress plugins there is a common situation when plugins are an unnecessary headache for the web masters. The point is any plugin brings a series of updates that can crash your WordPress website functionality in some cases.

So if you have some basic PHP skills (we mean really really basic - like being able to copy and paste the pieces of code) or web development experience you might be interested in making some little changes to your WordPress website with your own hands. With this in mind we have prepared for you some short and interesting WordPress hacks that would improve your WP-based without involving any third-party software. There are many simple functions that actually don't need being plugin-powered. These are pagination, contact forms, social media buttons etc. Anyways, just know that this post isn't meant to criticize the existence and usage of WordPress plugins - it's just an alternate point of view so you could have choice. This post is meant for those seeking souls that are looking for simple and interesting solutions to improve their WordPress themes functionality.

How to build a WordPress Post Pagination without plugin


* * *

Display Your Popular Posts In WordPress Without A Plugin


* * *

How to Add Live Comment Preview to Comment Text area without Plugin


* * *

Show Number of Retweets in WordPress Without a Plugin


* * *

Breadcrumbs without plugin

function the_breadcrumb() {
  echo '
    '; if (!is_home()) { echo '
  • '; echo 'Home'; echo "
"; if (is_category() || is_single()) { echo '
  • '; the_category('
  • '); if (is_single()) { echo "
  • "; the_title(); echo '
'; } } elseif (is_page()) { echo '
  • '; echo the_title(); echo '
'; } } elseif (is_tag()) {single_tag_title();} elseif (is_day()) {echo"
  • Archive for "; the_time('F jS, Y'); echo'
';} elseif (is_month()) {echo"
  • Archive for "; the_time('F, Y'); echo'
';} elseif (is_year()) {echo"
  • Archive for "; the_time('Y'); echo'
';} elseif (is_author()) {echo"
  • Author Archive"; echo'
';} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "
  • Blog Archives"; echo'
';} elseif (is_search()) {echo"
  • Search Results"; echo'
';} echo ''; } ?>

* * *

Show Top Commentators In WordPress Without A Plugin

function top_comment_authors($amount = 5){

 global $wpdb;

 $results = $wpdb->get_results('
   COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url
   comment_author_email != "" AND comment_type = "" AND comment_approved = 1
   comments_count DESC, comment_author ASC
  LIMIT '.$amount


 $output = "
    "; foreach($results as $result){ $output .= "
  • ".$result->comment_author."
  • "; } $output .= "


 echo $output;


* * *

Restrict Admin Menu Items Based on Username

function remove_menus()
    global $menu;
    global $current_user;

    if($current_user->user_login == 'username')
        $restricted = array(__('Posts'),
        end ($menu);
        while (prev($menu)){
            $value = explode(' ',$menu[key($menu)][0]);
            if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);}
        }// end while

    }// end if
add_action('admin_menu', 'remove_menus');

* * *

How to Redirect WordPress Feeds to FeedBurner without a Plugin

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteRule ^feed/?([_0-9a-z-] )?/?$ [R=302,NC,L]

* * *

Take Control of your WordPress Admin Bar

function my_admin_bar_link() {
 global $wp_admin_bar;
 if ( !is_super_admin() || !is_admin_bar_showing() )
 $wp_admin_bar->add_menu( array(
 'id' => 'diww',
 'parent' => 'my-blogs',
 'title' => __( 'Do It With WordPress'),
 'href' => admin_url( '' )
 ) );
add_action('admin_bar_menu', 'my_admin_bar_link');

* * *

How To: Inserting Google Maps into WordPress

//Google Maps Shortcode
function do_googleMaps($atts, $content = null) {
      "width" => '640',
      "height" => '480',
      "src" => ''
   ), $atts));
   return '';
add_shortcode("googlemap", "do_googleMaps");

* * *

Recent Posts With Thumbnails In WordPress Without A Plugin


* * *

Remove post columns

function remove_post_columns($defaults) {
  return $defaults;
add_filter('manage_posts_columns', 'remove_post_columns');

* * *

How to Generate Perfect WordPress Title Tags without a Plugin

* * *

Random WordPress Quotes Without A Plugin


* * *

Add Social Links to WordPress Without a Plugin


* * *

Edward Korcheg

Edward is a professional technical writer who is also passionate about making stunning designs in Photoshop. You can find many useful tutorials in his collection of articles at MonsterMost.

Get more to your email

Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.

From was successfully send!
Server error. Please, try again later.

11 responses to “15 Hacks to Pimp Your WordPress Website”

  1. Donaldmathis says:

    Good work!

  2. Emma says:

    Edward you have made my day. I was stuck with many things using plugins, by customizing them I am feeling comfortable. Your finds are great!  I should say you THANKS!

  3. Jacob Stoops says:

    Edward, thanks for the inclusion of my Related Posts tutorial on here. It’s much appreciated!

  4. Kevin Chard says:

    Hi Edward, thanks for including one of my snippets, glad you like the site.

  5. rawdha says:

    SVP comment j peux utiliser deux code jquery dans le meme code PHP ?? par exemple: une galerie d’image et un formulaire avec le test jquery ?? c urgent svp

  6. hunzaboy says:

    one of the best articles so far.. 

    Great Great Great!

  7. Website Girl says:

    It is the Front end I need Bilingual, or give user the option of language choice. Eg; French / English. I have heard people talk about WPML but I don’t know what this is, or how to install it into my theme.

  8. Dave says:

    Hey Edward,

    Really appreciate the inclusion of my tutorial here. Cheers

  9. Website Girl says:

    Have you got some advise to to make the WordPress site Bilingual?

    • Edward Korcheg says:

      It depends on what exactly you mean because making back-end bilingual – that’s one thing. While the front-end bliniguality can be partially realized with the help of few particular plugins.

Leave a Reply

Your email address will not be published. Required fields are marked *