Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter baffleinc

    (@baffleinc)

    Fail. Was looking at the wrong part of the list alphabetically- didn’t know that child themes get grouped with parent themes. Cheers.

    Thread Starter baffleinc

    (@baffleinc)

    To reiterate my problem, maintenance mode breaks all my sub-pages. All my top level pages work, however anything that is a child page comes up with the deleted maintenance mode template (which I’d made custom). what can I do about this?

    I’ve searched for .maintenance files, and any stray index.html files. NADA.

    please help, I’d like to have this site ready by tomorrow night.

    ~Harley

    Forum: Fixing WordPress
    In reply to: Multiple Loops

    use a category foreach to get the category id, then add it into the query_posts() (add this just before the endwhile of the main posts:

    <?php
    	foreach((get_the_category()) as $category) {
    		$category_id = $category->cat_ID . '';
    		$category_name = $category->cat_name . '';
    	}
    ?>

    then in your sidebar:

    <h2>Other posts under <?php echo $category_name; ?></h2>
    <?php
    if(have_posts()) :
    query_posts('cat='.$category_id);
    ...

    OR

    <h2>Other posts under <?php echo $category_name; ?></h2>
    <?php
    if(have_posts()) :
    query_posts('cateogry_name='.$category_name)
    ...

    That should work fine. Just make sure the first segment of code is within the main Loop!

Viewing 3 replies - 1 through 3 (of 3 total)