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.

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

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Categories: theme tutorial
Tags: wordpress mu post thumbnail automatic, automatic thumbnails wordpress, raquo, wordpress automatic thumbnail theme, wordpress themes with automatic thumbnails, wp-adv-newspape, wp-adv-newspaper/inner right sidebar php on line 7, generate automatic thumbnails wordpress plugin, wordpress theme with auto thumbnail, update thumbnail wp advanced newspaper, wp advance newspaper tutorial, wordpress auto thumbnail, wp advanced newspaper plugins, thumbnail post wordpress plugin automatics, wpadvanced newspaper tutorial, lt, wordpress template auto thumbnail, wp auto thumbnail plugin, lifestyle theme thumbnails, change folder in wp advanced newspaper theme, automatically make wordpress thumbnails wp 3 0, wordpress wp advanced newspaper theme, wordpress facebook image thumbnail plug in, how auto thumbnail in wordpress theme news, image script, slider2 wp adv newspaper, how to include thumbnails in post wordpress newspaper theme, npadvmainfea script, wordpress theme with auto thumnail, wp total automatic thumbnail, how to post images in wp advanced newspaper, get the image wp advanced, advanced newspaper for wordpress, permalink, div id, tutorial advanced news paper, auto thumbnail for wp, wp business directory thumbnails, auto thumbnail wordpress, wp advanced newspaper theme thumbnails, img src, <?php $query1 = new wp_query();$query1->query(showposts=10); ?>, wordpress magazine auto thumbnail, auto thumbnail get the image lifestyle, wp auto thumbnail theme, <?php $a = 1; $query1 = new wp_query();$query1->query, advanced newspaper wordpress theme, theme automatic thubnails wordpress, newspaper with wordpress, wp show thumbnail on rss

Translate

Print

Print This Post Print This Post

Search

WooThemes - WordPress themes for everyoneOneNews WordPress Themes
Theme Forest - Quality Themes, Great SupportElegant Wordpress Themes
Blogohblog.com - Premium WordPress Themes

Community

Login with Facebook:
Last visitors
Powered by Sociable!

Related Post

Recently Commented

Photo Gallery

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