WordPress.org

Ready to get started?Download WordPress

Forums

pretty permalinks w/ dropdown cats (4 posts)

  1. brittanie
    Member
    Posted 8 years ago #

    I have installed the dropdown-cats function and it works great, except for one annoying feature. I am using pretty permalinks, so when you select a category from the post meta data, you get http://abroad-abroad.org/wordpress/index.php/category/everyday/.

    When you select the same category from the drop-down menu, it returns the exact same page, but the navbar reads http://abroad-abroad.org/wordpress/index.php?cat=1.

    Previous to installing the drop-down, clicking a cat from the standard sidebar menu return a pretty permalink.

    I've asked this question before and got no answer. Hoping someone can help this time. Thanks!

  2. Lorelle
    Member
    Posted 8 years ago #

    Permalinks are created when a person visits your site. In the most basic explanation, when they visit, the browser checks the .htaccess file which instructions the bowser to display the "pretty permalinks" link in the address bar. These are also created, using WordPress's functions with the "post slug" on the Write Post panel.

    Is the drop down cats function in your actual page set there with a plugin or by the template tag in your template file? Or are you talking about choosing from a drop down menu in your Administration Panels?

    YOu can see more information on this at http://codex.wordpress.org/Template_Tags/dropdown_cats

  3. brittanie
    Member
    Posted 8 years ago #

    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.

  4. marilynshampoo
    Member
    Posted 7 years ago #

    did you ever get a resolution for this? it's driving me mad too...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.