Display the Featured Image Only on the First Page

Remove the featured image from the rest of the next page which post using the code <!–NextPage–>



I have the featured image in the single page. In my site I split the posts into multiple pages using


in editor. Also I have a

<?php the_post_thumbnail( 'single-post-thumbnail' ); ?>

in my single.php file.

What happen now is that the featured image will show to all multiple pages. All I want is that the featured image will only show in the first page.

Here is the solution:

Add the following code to replace your featured image code:

global $page;
if ($page == 1) {
  the_post_thumbnail( 'single-post-thumbnail' );
} ?>

Install Postfix to Send Email Instead of Sendmail in Centos LNMP

If your email can’t work in LNMP or in centos, why not change it to Postfix? Which is simple and faster than sendmail!

What is Postfix? It is Wietse Venema’s mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Now at Google, Wietse continues to support Postfix.

Here we go!
Continue reading “Install Postfix to Send Email Instead of Sendmail in Centos LNMP”

How to Solve “xz compression not available” Error in Centos

If you want to install or update use the yum command and got this error in Centos server:

error xz compression not available
error xz compression not available

Error: xz compression not available

Here is the solution.

This problem comes if you installed a wrong epel release on your machine. If so, then you need to remove the epel release by

yum remove epel-release

Sometimes that is not enough, you need to remove the cache as well by:

rm -rf /var/cache/yum/x86_64/6/epel

Then you can install the epel-release again

yum -y install epel-release

Hope this help you, I have solved this problem on my server.

Name.com Promo Code: $6.99 for .COM Domains – 46% Off!

Here is a new great big discount from name.com! You can use the new name.com promo code to get 46% off on any .com and .net domains!

Use this discount code to save.


.COM And .NET Domains Are $6.99

Expires 06/30/16

Details: Sale! Get .COM and .NET domains are $6.99. Limit one per customer.

Here is the proof. I just registered a new domain for just $6.99

name.com promo code
name.com promo code

Most Searched Words on Pinterest

Thanks to some recent search improvements of the Pinterest team made, we’re seeing some interesting differences in what people are looking for around the globe these days.

Most Searched Words on Pinterest
Most Searched Words on Pinterest

Here I listed the top 10 ideas people are searching for around the world in 2015. Continue reading “Most Searched Words on Pinterest”

[Solved] How to Remove WordPress Menu Class & ID

Some of you may want to remove wp_nav_menu remove classes from li

Just like this:

<div id="navi">
			<div class="menu-primary-container"><ul id="menu-primary" class="menu"><li id="menu-item-14" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-14"><a href="http://localhost/2in1design/intro-2/">Intro</a></li>
<li id="menu-item-16" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-16"><a href="http://localhost/2in1design/category/portfolio/">Portfolio</a></li>
<li id="menu-item-20" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20"><a href="http://localhost/2in1design/contact/">Contact</a></li>
<li id="menu-item-15" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-15"><a href="http://localhost/2in1design/category/blog/">Blog</a></li>
<li id="menu-item-17" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-17"><a href="#">Shop</a></li>

</ul></div>        </div>

If you don’t know how to remove the class and id, here is the solution.

I used the ideas on stackoverflow here, but it didn’t work for me, I use the following code, and it solved the problem!

Copy and paste the following code in your functions.php file (you can find under the theme’s folder.)

function current_to_active($text){

        $replace = array(

                //List of menu item classes that should be changed to "active"

                'current-menu-item' => 'active',

                'current_page_parent' => 'active',

                'current_page_ancestor' => 'active',


        $text = str_replace(array_keys($replace), $replace, $text);

                return $text;


add_filter('nav_menu_css_class', 'current_to_active');

add_filter('nav_menu_item_id', 'current_to_active');

add_filter('page_css_class', 'current_to_active');


//Deletes empty classes and removes the sub menu class

function strip_empty_classes($menu) {

    $menu = preg_replace('/ class=""| class="sub-menu"/','',$menu);

    return $menu;


add_filter ('wp_nav_menu','strip_empty_classes');

Wishlist Member Coupon Code – Wishlist Member Promotion

The WishList Member is one of the most popular communities and membership wordpress plugin, this plugin can turn any WordPress site into a full-blown membership site! I have 2 sites that using this plugin and Really I love it! If you’re going to buy this plugin, why not use the Wishlist Member Coupon Code to get discount?

Please follow this link to get the discount.
P.S. – This is a limited time promotion: From December 13-19th

Wishlist Member Two License Promo:
Single Site License $97 + Second Site License Only $25 –Click here to read more details…

Please note that the Wishlist Member coupon code is a limited time offer, when there are new discount coupon code provided by the author, we will update it here 😉