• syncbox

    (@syncbox)


    Odd. I can set up category descriptions and in all pages they work just fine. However, I have a “home” category that I use to categorize the posts that will show only on the home page – I’ve created a home.php file to use for this.

    The problem is that the code:


    <div id="intro"><?php echo category_description(); ?></div>

    isn’t displaying the text in the category description. If I upload a special category (category-1.php) page, it does display… however, I don’t know how to get that page to display by default the way home.php does.

    to show the home category posts, I am using:


    <?php
    if (is_home()) {
    query_posts("cat=1&order=ASC");
    }
    ?>

    Ideas, anyone? What am I doing wrong? I don’t care which page is used (home.php or category-1.php) but I need it to load by default (like home.php) AND display the category_description as well as the posts in reverse order.

    All help greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter syncbox

    (@syncbox)

    am I doing something wrong or does no one understand what I am asking or what? I seldom actually see an responses to my questions… I’d post a link to the page, but given that you cannot see the server side code, that seems pointless, doesn’t it?

    I really could use some help with this question and with the one I’ve asked in several places about how to get the “inline” comments method to require login… (under comments tag)

    Please?

    vkaryl

    (@vkaryl)

    I’d be more than happy to help, no you’re not doing anything wrong, I just don’t have any answers for you personally, don’t do the sort of things you’re asking about.

    Sometimes it takes a while for the people who know about specifically code-related stuff to show up…. Sorry!

    Thread Starter syncbox

    (@syncbox)

    that’s okay, I appreciate even knowing if someone’s reading this.

    maerk

    (@maerk)

    Is there a call to query_posts already on the page? If so you need to exclude the existing query_posts, because when is_home() is true, you’re calling query_posts twice. Try this:

    <?php
    if (is_home()) {
    query_posts("cat=1&order=ASC");
    }

    else {
    query_posts("WHATEVER THE ORIGINAL WAS");
    }
    ?>

    No idea if that’ll work, just an idea.

    Thread Starter syncbox

    (@syncbox)

    yes, there is a query,

    <?php
    if (is_home()) {
    query_posts(“cat=1&order=ASC”);
    }
    ?>

    …guess that isn’t it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘home page and category description’ is closed to new replies.