New Posts
Welcome guest, is this your first visit?
  • Login:
FlushAffiliate.com Affiliate Program
+ Reply to Thread
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By pokerworx

Thread: Is there a homepage news plugin for wp?

  1. #1
    Senior Member
    My Status
     
    ----
     

    Add as a friend
    Join Date
    Jul 2009
    Location
    england
    Posts
    1,362
    Blog Entries
    11
    Feedback Score
    20 (100%)

    Default Is there a homepage news plugin for wp?

    Is there such thing as a homepage news plugin for wordpress which lets you insert thumbnails and news snippets on your homepage?
    My affiliate blog: Affiliate FYI Twitter: @AffiliateFYI

    Need an Infographic? Infographic Designs from $750.

  2. #2
    d[-_-]b
    My Status
     
    ----
     

    Add as a friend
    Join Date
    Apr 2009
    Location
    (◣_◢)
    Posts
    1,118
    Blog Entries
    2
    Feedback Score
    17 (100%)

    Default

    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...

    Code:
    <?php
    /*
    Template Name: Blog Template
    */
    ?>
    Add this to it, you should be able to work out where it goes..

    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; ?>
    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.
    ak likes this.
    UK based company to promote check out SKY - they offer everything, pay in . Check out there information pack and if you sign up through my link hit me up and ill throw you a link or two.

    Surviving the Affiliate Industry since 2009... UIGEA, Superusers, Global Economic Crisis, Black Friday ... whats next? Bring it on... I still work a day job too - haven't quit!

  3. #3
    ak
    ak is offline
    Senior Member
    There Is No Place Like Home
     
    ----
     

    Add as a friend
    Join Date
    Feb 2010
    Location
    Kansas
    Posts
    1,805
    Blog Entries
    4
    Feedback Score
    75 (100%)

    Default

    This dude knows what he is doing..


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0