Two quick wordpress questions

Discussion in 'WordPress' started by StuartDykes, May 24, 2009.

  1. #1
    Just two quick wordpress questions...

    Ok, I have set up the static homepage. Now what I want is a way to just show the titles of my recent posts on the home page and not the full post. How do I do this? Is there a plugin?

    Second question, I want to do the same thing for the categories. At the moment, when you click on say the categoryx link, the urls are sitex/categories/categoryx. What I want is for the url to be sitex/categoryx. Then on this page I want to display just the headers to the recent posts in this category. Again how?

    I have spent all day, customizing the theme and tweaking certain things in it. Just cant figure this last step out. Once I get this I just need to change the css for IE6 and Im golden. Woohoo.
     
    StuartDykes, May 24, 2009 IP
  2. internetmarketingiq

    internetmarketingiq Well-Known Member

    Messages:
    3,552
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    165
    #2
    I can't answer your first question because it depends on the theme and how much tweaking you know how to do with the code. You can set in the Admin Panel Reading Full Text or Summary.

    The answer to your second question is to use a custom permalinks structure.

    /%postname%/ should do most of what you want.

    You can also use /%postname%.html and pick any extension you want to display... htm html php or whatever.
     
    internetmarketingiq, May 24, 2009 IP
  3. susan8051

    susan8051 Peon

    Messages:
    1,358
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #3
    answer for the second question

    actually i think that you are trying to remove the category base..
    To do that in the permalinks option use . in the category base option.
    and as internetmarketingiq the first question depends on the theme..
     
    susan8051, May 25, 2009 IP
  4. djuicePK

    djuicePK Peon

    Messages:
    77
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    For your first question.... it really depends on your theme but generally this will work
    Put the code below in your functions.php file...
    
      if(is_home()) :
       add_action('the_content','wp_homepage_remove_content');
      endif;
      function wp_homepage_remove_content($content){
       $content = '';
       return '';
      }
    
    Code (markup):
    don't forget to enclose above code above in PHP tags
     
    djuicePK, May 25, 2009 IP
  5. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #5
    If you don't want the post on the homepage, go to your index.php or home.php and remove:

    
    <?php the_content(); ?>
    
    Code (markup):
     
    mizaks, May 25, 2009 IP
  6. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #6
    On the first line of the post, before the first sentence, insert the read more break. When people view your home page, they should see the article title and the read more link.

    It looks like most of the already mentioned options will work. I just wanted to recommend something that did not require editing the wordpress code.
     
    ~kev~, May 26, 2009 IP