I want to remove the query string from the wordpress url. URL: http://domain.com/our-homes-storey/?storey=40 I want to change that url from the below url: http://domain.com/our-homes-storey/locationname
3
-
Just check your permalink setting. there is no need for htaccess rulesAnigel– Anigel2014-08-14 12:00:44 +00:00Commented Aug 14, 2014 at 12:00
-
1In back-end (admin panel) you have to set permalink to post name in settings tab. it will automatically create .htaccess for youSwapnil– Swapnil2014-08-14 12:03:05 +00:00Commented Aug 14, 2014 at 12:03
-
This is not a page url. This is custom url. So I want to change that url.user3387486– user33874862014-08-14 12:05:27 +00:00Commented Aug 14, 2014 at 12:05
Add a comment
|
1 Answer
Go to Wordpress Admin - Settings - Permalinks
And set your permalinks to be one of the formats you want, or create your own.
6 Comments
user3387486
This is not a page url. This is custom url. So I want to change that url.
Lee
You need to make your question a bit more clearer. I don't understand what you're trying to do now. What's generating the store parameter? Can we see some code?
user3387486
Please find the link: melbournebuilders.demo.netsmartz.us/our-homes and click on the particular storey after that generate the url: melbournebuilders.demo.netsmartz.us/our-homes-storey/?storey=40. So i want to change the url: melbournebuilders.demo.netsmartz.us/our-homes-storey/…
Lee
What's generating the store parameter? Can we see the code that's generating those links?
user3387486
<option value="<?php echo add_query_arg( 'storey',$hmrow->home_id, get_permalink(295) ); ?>"> <?php echo $hmrow->home_name;?></option>
|