Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have 3 custom searches created using different templates.

The search results page loads different results depending on the referrer:

<?
/* Template Name: Search Results */
$search_refer = $_GET["post_type"];

if ($search_refer == 'post') { 
    load_template(TEMPLATEPATH . '/search/filme.php'); 
}
elseif ($search_refer == 'persoane') { 
    load_template(TEMPLATEPATH . '/search/actori.php'); 
}
elseif ($search_refer == 'trailers') { 
    load_template(TEMPLATEPATH . '/search/trailers.php'); 
}
?>

I'd like to make the url of this page prettier. Right now it looks like this:

/?s=After+Earth&post_type=post

but I'd like it to look like this:

/search/After+Earth/post_type/post

How do I make the url more beautiful?

share|improve this question
This one may be helpful: wordpress.org/extend/plugins/monkeyman-rewrite-analyzer – brasofilo Jan 25 at 6:52

1 Answer

first of all ,see this url http://codex.wordpress.org/Using_Permalinks ,and then goo to the admin dashboard Settings->Permalink Settings->Common Settings set the the url as you want,Have a try,just,may be it will help!

share|improve this answer
i know of that, the permanent link's are enabe "/%postname%/" – Batman Jan 6 at 17:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.