How to Add Content In Homepage Only, Page 2 Only, Specific Category, And Specific Tag

Adding content in homepage only

<?php if(is_home() && !is_paged() ) { ?>
-- YOUR CONTENT HERE --
<?php } ?>

Adding content in page/2 only

<?php 
// get current page we are on. If not set we can assume we are on page 1.
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
// are we on page two?
if(2 == $paged) {
 ?>
-- YOUR CONTENT HERE --
<?php } ?>

Adding content in tag ‘health’ only

<?php if ( is_tag('health') ) { ?>
-- YOUR CONTENT HERE --
<?php } ?>

Adding content in category ‘movie review’ only

<?php if ( is_category('movie-review') ) { ?>
-- YOUR CONTENT HERE --
<?php } ?>

 

language solutions web design

Language Solutions Web Design

Project date: Jan 2013
Project site: Language-Solutions.org

WebMinimalist.com is a web design company that can help you with WordPress theme design. We offer you affordable service that is fast, professional, and fits with your needs and requirement. We would prefer if you fill out the contact form and we will be in touch very shortly.

We provides quality WordPress themes for your site. WebMinimalist.com is a dedicated blog, and also has significant traffic daily. The content of this blog mostly are about web design, WordPress tips, tricks, and tutorials.

How to Crop Image Thumbnail From Top Center – WordPress Tutorial

I’ve been searching about how to crop image thumbnail from the top center (instead of default center center), but unfortunately the only thing to solve this problem is by editing the core.

Open wp-includes – media.php. Find this lines:

$s_x = floor( ($orig_w - $crop_w) / 2 );
$s_y = floor( ($orig_h - $crop_h) / 2 );

And replace with this code:

$s_x = floor( ($orig_w - $crop_w) / 2 );
$s_y = 0; //floor( ($orig_h - $crop_h) / 2 );

And then you need to regenerate your thumbnails using plugins, Regenerate Thumbnails. This step will automatically crop all the post thumbnails again.

Best Inspirational iPhone Wallpapers

Today I want to share with you, a collection of best inspirational iPod Touch/iPhone wallpapers. All images here are free to download, retina display optimized with high resolution. Have your iPod Touch/iPhone home screen and lock screen with these inspirational quotes wallpapers.

Inspirational Quote iPhone Wallpaper - Decide – Bill Cosby

Inspirational Quote iPhone Wallpaper – Decide – Bill Cosby

Continue reading