You are here:  » seo friendly url for search


seo friendly url for search

Submitted by framor on Fri, 2012-06-01 16:13 in

From:

http://www.example.com/shopping?pto_q=roma+capitale

To:
http://www.example.com/search/roma-capitale/

Thanks
Francesco

Submitted by support on Sat, 2012-06-02 12:13

Hi Francesco,

Yes that should be possible; it's not totally straight forward as it has to hook into the code before any headers have been generated so that the form submission can be redirected to /search/ (although it may need to be something different as WordPress already hooks /search/ as far as I know...) but I'll check it out on my test server and get back to you (I'll update this thread for the benefit of other users and drop you an email to let you know...)

Cheers,
David.
--
PriceTapestry.com

Submitted by framor on Thu, 2012-06-14 06:19

Using

[pto search="Keywords"]

result for pages after the first

From

{link saved}

To similar to

{link saved}

it is possible?

Submitted by support on Thu, 2012-06-14 08:34

Hi Francesco;

Using [pto search="Keywords"] should be displaying the navigation bar if there are more results than the configured number of results to display per page; however if you want to display a particular page via the shortcode this can be done with a simple modification.

In pto.php look the following code at line 514:

    if (isset($atts["maxprice"])) $pto_maxPrice = $atts["maxprice"];

...and then add the following code at this point:

    global $pto_page;
    if (isset($atts["page"])) $pto_page = $atts["page"];

Then you can use:

[pto search="Keywords" page="2"]

Cheers,
David.
--
PriceTapestry.com