[resolved] New Default Opening Page and Comments on Catagory? (5 posts)

  1. JGatos
    Posted 9 years ago #


    Boy, am I learning a lot... LOL...

    Okay, the following two questions should be easy to do, again however, the answers elude me..

    Please go to my website.. http://www.gatosblog.com

    The first thing I want to do is make the catagory "Featured Listings" (Page)... be the first page anyone sees when they open up the site.. If not that, then how about "Kathy's Listings" (Catagories)...

    The second thing I am trying to fgure out is ... Can I make a catagory with the posts from newest to oldest and put those in a catagory? I think that may be possible if I flag every post with an additional catagory, supposing I call it "Posts"...

    Thanks in Advance.. I'm really beginning to like this.. LOL


  2. tsguitar
    Posted 9 years ago #

    So you want your main index page to show only posts from one category? Try this:

    On my index.php, the beginning of my Loop is this:
    <?php if (have_posts()) : query_posts($query_string .'&cat=-2'); while (have_posts()) : the_post();

    That keeps category 2 off my home page. If that were &cat=2 (take out the minus sign), then it will only show entries from category 2. So if you replace your Loop on the Main Index Template, then you can have the home page only show certain categories.

    Another way about this would be to use .htaccess. Here's some info:

    So, in the root directory of your blog, if you make your .htaccess file read, in addition to whatever else is there, DirectoryIndex ?page_id=169, I wonder if that would work. Or, if not that, create a page that's just a redirect to http://gatosblog.com/?page_id=169 and use that page as the DirectoryIndex page.

    About your second thing, posts normally show from newest to oldest so I don't get what you want to do differently. Right now, when you click on a category name you go to a page with entries listed from newest to oldest.

  3. JGatos
    Posted 9 years ago #

    Thanks ...

  4. tsguitar
    Posted 9 years ago #

    As in "Cool! I got it working!" or "Thanks for showing me more stuff I don't understand"? If this is resolved, mark it "Resolved." If it isn't, ask more questions.

  5. JGatos
    Posted 9 years ago #

    Forgive me. I had no idea.. I will mark as resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic