
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(); ?> »</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(); ?> »</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 :



















































nice post you doin great job
[Reply]
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]