• Resolved brittanie

    (@brittanie)


    I’m new to WordPress, and I love it so far, expect I’m having major issues trying to put my monthly archives and categories into dropdown lists.

    I have followed the instructions for both on the codex and get searched these forums with no luck (many of the posts are a year old and unanswered). I am having the following problems:

    I get the Archives dropdown to work fine but it screws up my validity with the “form.”

    For category drop downs ( sans submit button), they work beautifully in all browsers except Explorer 6.0, and then it shows an empty drop down box with the list of unlinkable categories below it.

    Puhleeeease help me someone.

    My test site is abroad-abroad.org/wordpress

Viewing 5 replies - 1 through 5 (of 5 total)
  • It would be helpful if you made your “name/link” in the preferences the link to your blog.

    “Turn on” the drop down again and I will take a look.

    Thread Starter brittanie

    (@brittanie)

    Okay, I turned back on the Monthly drop-down, and this is the W3.org error I’m getting:

    Error Line 177 column 36: document type does not allow element "form" here; assuming missing "li" start-tag.
    <form id="archiveform" action="">

    Error Line 186 column 8: end tag for "li" omitted, but OMITTAG NO was specified.
    </ul>
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    Info Line 177 column 4: start tag was here.
    <form id="archiveform" action="">

    I also added the dropdown cats and as I said before, they look beautiful in Safari and Firefox but totally broken in IE 6.0.

    Here is my sidebar code:

    <div id="sidebar">

    <ul>

    <?php wp_list_pages('sort_column=menu_order&title_li=<h2>' . __('Go Somewhere') . '</h2>' ); ?>

    <?php if ( is_home() || is_single() || is_archive()|| is_category()) : ?>

    <li><h2><?php _e('Previously'); ?></h2>
    <ul>
    <?php wp_get_archives('type=postbypost&limit=5'); ?>
    </ul>
    </li>

    <li><h2><?php _e('Categories'); ?></h2>
    <ul>
    <form name="catform" action="/index.php">
    <select name="cat" onchange="submit(this.form)">
    <option value=''>by section</option>
    <?php dropdown_cats(); ?>
    </select>
    </form> </ul>
    </li>

    <li><h2><?php _e('Archives'); ?></h2>
    <ul>
    <form id="archiveform" action="">
    <select name="archive_chrono" onchange="window.location =
    (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
    <option value=''>Select Month</option>
    <?php get_archives('monthly','','option'); ?>
    </select>
    </form>

    </ul>
    </li>

    <?php endif; ?>

    <?php if ( is_page('Link-A-Rama')) : ?>

    <?php
    $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    foreach ($link_cats as $link_cat) {
    ?>
    <li id="linkcat-<?php echo $link_cat->cat_id; ?>"><h2><?php echo $link_cat->cat_name; ?></h2>
    <ul>
    <?php wp_get_links($link_cat->cat_id); ?>
    </ul>
    </li>
    <?php } ?>

    <?php endif; ?>

    <?php if ( is_page('This Is Me')) : ?>

    <li><h2><?php _e('Meta'); ?></h2>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a href="https://validator.w3.org/check/referer&quot; title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
    <?php wp_meta(); ?>

    </ul>
    </li>

    <li><h2>Search me</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </li>

    <?php endif; ?>

    </ul>
    </div>

    Thanks in advance for any advice.

    Easy enough (answer even given in the error message ;-)…

    <li><h2>Categories</h2>
    <ul>
    <li>
    form and dropdown tag
    </li>
    </ul></li>

    Thread Starter brittanie

    (@brittanie)

    Okay, that worked to validate the Archives list, but I STILL can’t get the category dropdown to work at all. I swear it’s driving me crazy and it’s likely just one little piece of code. I have tried the fixes on the codex and I have edited my template-functions-category file so that the page is now valid, but validity don’t mean nuttin’ if it don’t work, y’all.

    Thread Starter brittanie

    (@brittanie)

    Never mind, I fixed it. My WP isn’t installed in my root, so I had to add the directory to the index/php code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issues with dropdowns’ is closed to new replies.