Automatic Thumbnail for Wp Advanced Newspaper

Posted by irwanbee on Jan 20th, 2010 and filed under theme tutorial. You can follow any responses to this entry through the RSS 2.0. You can leave a response or trackback to this entry


Hi WordpressThemeTutorial.com lovers, in this post i will show you how to modify WpAdvanced Newspaper (theme created by Gabfire) to show the thumbnail with automatics way.

The plugin that you should install and activate is Get The Image plugins. I recommend you to use the previous version, not the updated version inside wordpress.org. To download the “late version”, you can download it in this site.

First, lets try to modify the main page.

Open the home.php. This file used to manage your main page layout.

Let we see this script below :

<div id=”slider2″>
<?php $a = 1; $query1 = new WP_Query();$query1->query(’showposts=’.$theme_options["feaPostCount"].’&&cat=’.$theme_options["featuredCatID"]); ?>
<?php while ($query1->have_posts()) : $query1->the_post(); ?>
<div>
<a href=”<?php the_permalink() ?>” rel=”bookmark”><img src=”<?php viva(‘NpAdvMainFea’,'1′); ?>” alt=”" /></a>
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?> &raquo;</a></h2>
</div>

Red colored text above were the script that make the thumbnail show for Slider2 area. So we will change this script with Get_The_Image script to make it automatics. Plugin Get The Image can show image which already have url included (when we click that image), so we can remove this script : <a href=”<?php the_permalink() ?>” rel=”bookmark”>

At the end, the script will be like this :

<div id=”slider2″>
<?php $a = 1; $query1 = new WP_Query();$query1->query(’showposts=’.$theme_options["feaPostCount"].’&&cat=’.$theme_options["featuredCatID"]); ?>
<?php while ($query1->have_posts()) : $query1->the_post(); ?>
<div>
<?php get_the_image( ‘width=495&height=284′ ); ?>

<h2><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?> &raquo;</a></h2>
</div>

The point of these modify, is changing <img src=”<?php viva(‘NpAdvFeaThumb’,  with plugins, so the thumbnail will not depend on thimthumb script but use Get_The_image Plugins.

Use the same method to change all of the script that calling image with the plugin script. Every images have its own size, so you must do “Trial and Error” to get the perfect size for it.

To see more example for this script change, download this txt file below :

Please Login or Register to see the download link.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

2 Responses for “Automatic Thumbnail for Wp Advanced Newspaper”

  1. nice post you doin great job

    [Reply]

  2. Mobile Phone says:

    WP Advanced Newspaper is cool theme for Wordpress Magazine Style
    But it isn’t support autothumbnail, and now I read this tip, very helpful

    [Reply]

Leave a Reply

Translate

English flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroatian flagDanish flagFinnish flagHindi flagPolish flagRomanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flagAlbanian flagEstonian flagGalician flagMaltese flagThai flagTurkish flagHungarian flagBelarus flagIrish flagIcelandic flagMacedonian flagMalay flagPersian flag

Print

Print This Post Print This Post

Search

Host Unlimited Domains on 1 Account

Related Post

Photo Gallery

Log in / Advanced NewsPaper by Gabfire Themes
Education and Training Blogs - BlogCatalog Blog Directory