Forums

Permalinks how to (4 posts)

  1. lerizzle
    Member
    Posted 9 months ago #

    I never found an answer to this but I'll try again.
    mysite.com?apple=red&pears=yellow

    Any guide out there to help turn the above into
    mysite.com/apple/red/pears/yellow?

    Second part is another option to my problem
    mysite.com/fruit/apple?apple=red

    How can I get wp to ignore the first 'apple'?

    So to recap.
    1. How to I handle query vars as pretty permalinks? Tutorial?

    2. can I add a word before the ? that wordpress would ignore. He does this:
    http://www.rolandlewis.com/Downtown3Bedroom.ubr/1901-1372-seymour-st-mls-v925033?order=listing_price%20DESC&action=filter&acronym=REBGV&mls_number=V925033

    Thanks a bunch. Help would be greatly appreciated.

  2. lerizzle
    Member
    Posted 8 months ago #

    So I've now got this:

    function add_testing_query_var() {
    global $wp;
    $wp->add_query_var('testing');
    }

    add_filter('init', 'add_testing_query_var');

    function add_testing_rewrite_rule() {
    add_rewrite_rule('testing=/(\d*)$', 'index.php?testing=$matches[1]', 'top');
    }

    add_action('init','add_testing_rewrite_rule');

    My problem is when I go to

    http://www.mysite.com/mypage/testing/2

    I get a page not found. Can anyone shed some light on this?

    Thanks.

    Dan

  3. imranpak
    Member
    Posted 2 months ago #

    hello there,

    Have you got any solutions for this problem?

    How can I turn those in nice permalinks?

    I have http://www.myURL.com/blog/?p=223

    Any direction to the answer would be appreciated.

    Thanks in Advance.

    Imran

  4. lerizzle
    Member
    Posted 2 months ago #

    I think what you are looking for is just the permalink setting in the sidebar. Click on it you'll see.

Reply

You must log in to post.

About this Topic

Tags