Is there such thing as a homepage news plugin for wordpress which lets you insert thumbnails and news snippets on your homepage?
If its your own news posts you can post excerpts with a tbunail without a plugin, this is how I did it, just copy your page.php, paste it to a new txt doc, name it at the top...
Add this to it, you should be able to work out where it goes..Code:<?php /* Template Name: Blog Template */ ?>
Upload it, open the home page and select the page type to the one you named. Then when ever you make a post in that category it'll show up on the page. Its worth messing about 1st before you change the home page, The excerpt length is handled in the functions file, pretty easy to spot. Just make sure and backup the files you want to edit before you mess with them.Code:<?php $pages = get_posts(array( "category" => news category number here, "numberposts" => number of posts you want to show, "orderby"=> "date" )); foreach ($pages as $post) : setup_postdata($post); ?> <h2><?php the_title(); ?></h2> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(array(100,100), array('class' => 'alignleft')); ?> </a> <?php the_excerpt(); ?> <?php endforeach; ?>
There are 1000's of non gaming companies looking for affiliates @ ShareAsale - Join through my link..
This dude knows what he is doing..
There are currently 1 users browsing this thread. (0 members and 1 guests)