1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Looking for a wordpress plugin. Or something.

Discussion in 'WordPress' started by aaron_nimocks, Jun 30, 2007.

  1. #1
    What I am looking for is a way to list title only in the archive pages instead of listing the full post. Trying to avoid duplicate content.
    SEMrush
    I know some themes have a archive.php but my theme doesnt. Is there an easy way to do this?
     
    aaron_nimocks, Jun 30, 2007 IP
    SEMrush
  2. MarRome

    MarRome Peon

    Messages:
    865
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    0
    #2
    MarRome, Jun 30, 2007 IP
    aaron_nimocks likes this.
  3. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #3
    Thanks. Looks like a lot of work but Ill give it a try.
     
    aaron_nimocks, Jun 30, 2007 IP
  4. richrf

    richrf Active Member

    Messages:
    1,101
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    88
    #4
    SEO all-in-one works well. I would also recommend trying it out.

    Rich
     
    richrf, Jun 30, 2007 IP
  5. MarRome

    MarRome Peon

    Messages:
    865
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Havent tested it but this should work

    
    <?php
    /*
    Template Name: Archives
    */
    ?>
    
    <?php get_header(); ?>
    
            <div id="content" class="yourclass">
    
    <h1>Archives</h1>
    			<div class="entry">
    				<p><strong>Monthly archives:</strong><p>
    				<ul>
    					<?php wp_get_archives('type=monthly'); ?>
    				</ul>
    				<p><strong>Categories</strong></p>
    				<ul>
    					<?php wp_list_categories('title_li=0'); ?>
    				</ul>
    			</div>
    			
    		</div>	
    		
    		<?php get_sidebar(); ?>
    			
    	</div>
    		
    <?php get_footer(); ?>
    
    Code (markup):
    Depending on your theme you may have to include
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    Code (markup):
    Good luck
     
    MarRome, Jun 30, 2007 IP
  6. Etherfast

    Etherfast Peon

    Messages:
    1,192
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Your theme *COULD* have an archive.php :D
     
    Etherfast, Jun 30, 2007 IP