• I’ve been having difficulty with mod_rewrite and .htaccess

    I want users to be able to switch sorting of the taxonomy ‘job-category’, so I added a rewrite rule to the wordpress .htaccess :

    RewriteRule ^job-category/(.*)/(.*)/(.*)/$ index.php?job-category=$1&orderby=wp_posts.post_$2&order=$3 [L]

    but can’t seem to get this to work, at http://localhost/job-category/title/asc

    not sure if I need to use wp_rewrite, seemed overcomplicated for what I need to do. I can always pass ugly query variables, but would prefer this method

    any ideas?

The topic ‘wp rewrite for archive sorting’ is closed to new replies.