Forum Replies Created

Viewing 14 replies - 211 through 224 (of 224 total)
  • Really? Try this – when you select a category from the sidebar’s drop-down menu, what address comes up in the browser? Can you post the address you’re getting here so I can see. Because the issue is that the drop-down menu takes you to the correct PAGE, but it doesn’t show the category name in the URL. It shows the category ID instead. If you select a category link from directly UNDER a post, the URL on the new page features the category “pretty” permalink, as it should. What is the point of having pretty permalinks if you are still seeing the cat ID as opposed to the cat name in the URL?

    Thread Starter brittanie

    (@brittanie)

    I am using the exact code from the link you have provided for dropdown without a submit button. So, it’s a template tag, not a plug-in. Take a look at my test site and you’ll see what I mean. If a visitor clicks the category link UNDER the post (i.e. in the post meta data) they get the pretty permalink. But if you select the *same* category from the drop-down in the sidebar, you get the other permalink with the category ID number. THE PAGE DOES NOT CHANGE, only the url in the navigation bar changes. It’s as though one page has two seperate urls, or perhaps there are two identical pages with different urls.

    The codex does not say anything about dropdowns with pretty permalinks. It’s small request, I know, because the drop-down works as intended, but it’s driving me crazy.

    Here is my code:
    <form name="catform" action="/index.php" method="get">
    <select name="cat" onchange="submit(this.form)">
    <option value=''>Select Category</option>
    <?php dropdown_cats('hide=0'); ?>
    </select>
    </form>

    I’m using WP 1.5, and in the code about I have hidden category 0, or “All.’ But this issue began even before I set that parameter.

    I have had this problem too. In the past few days my site has gone from valid with one error to valid with, like, 45 errors, and I haven’t changed a thing.

    It should be possible, because I was able to exclude a category using the “hide” parameter. Try <?php dropdown_cats(‘sort_order=name’); ?> I’m going to test it on my site too.

    I, however, am still having issues with permalinks. You can select a category from the post meta data and be taken to:
    https://abroad-abroad.org/index.php/category/everyday/,
    but when you select the same category from the dropdown, it takes you to:
    https://abroad-abroad.org/index.php?cat=1.

    It’s the same exact page, but the category permalinks don’t work when you select from the drop-down.

    Thread Starter brittanie

    (@brittanie)

    Okay, you guys have conviced me. The only real reason I was holding on to that is because I know IE is the most popular browser out there. But just like someone would have to be a sadist to render a page in Mac IE, you’d also have to be a sadist to keep using IE to surf the web on your Mac.

    Now I’m happy. Thanks guys!

    The main page is for every post you write, regardless of it’s category. Category pages are really the archives of your website, organized by topic instead of date. In order to “hide” a post from the main page, you have to specify when you post that it should be hidden. There are several topics on this in the support forums. I suggest you look under “hide post from index” or something along those lines. Good luck!

    Thread Starter brittanie

    (@brittanie)

    Anyone? Bueller?

    Thread Starter brittanie

    (@brittanie)

    Uhg, uhg, ugh. Nevermind. Remember how I said I though it was a small little thing I was missing? It was, and now it’s fixed, four minutes later. Thanks anyway!

    Superjux-

    I got this to work using this code:

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

    But I also had to edit my template-functions-category.php file to make the hack valid. Once I did, it solved the links outside of the box problem.

    Edit your template-functions-cat file to comment out lines 208 (echo “<select name=’cat’ class=’postform’>n’;)
    and line 227 (echo “/select>n”;)

    Forum: Plugins
    In reply to: Issues with dropdowns
    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.

    Forum: Plugins
    In reply to: Issues with dropdowns
    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.

    Forum: Plugins
    In reply to: Issues with dropdowns
    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.

    Moshu-

    I tried that, but I’m still having the same problem. Everything looks great, as I said, in Firefox and Safari, but IE 6.0 is kicking my booty.

    I am having the same problem, but only in Explorer, version 6.0. The drop dowm menu looks and works great in Safari and Firefox. Any ides? Here is the code for my sidebar:

    ‘ <div id=”sidebar”>

      <!– Author information is disabled per default. Uncomment and fill in your details if you want to use it.

    • <h2><?php _e(‘Author’); ?></h2>
      A little something about you, the author. Nothing lengthy, just an overview.
    • –>

      <h2>
      <?php wp_list_pages(‘title_li=’); ?>
      </h2>

      <!– WordPress Calendar is disabled per default. Remove the html comment tags if you want to use it.
      <li id=”calendar”>
      <?php get_calendar(2); ?>

      –>

    • <h2><?php _e(‘Archives’); ?></h2>
      <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>
    • <h2><?php _e(‘Categories’); ?></h2>
      <form name=”catform” action=”<?php echo $PHP_SELF ?>”>
      <select name=”cat” onchange=”submit(this.form)”>
      <option value=”>Select category</option>
      <?php dropdown_cats(); ?>
      </select>
      </form>
    • <h2><?php _e(‘Previously’); ?></h2>
      <?php wp_get_archives(‘type=postbypost&limit=5’); ?>

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) : ?>
    <?php get_links_list(); ?>

    • <h2><?php _e(‘Meta’); ?></h2>

    <?php endif; ?>

    • <h2>Search me</h2>
      <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    </div>

Viewing 14 replies - 211 through 224 (of 224 total)