You are here:  » No banner and navigation when using shortcode


No banner and navigation when using shortcode

Submitted by koen on Sat, 2013-12-07 19:57 in

Hi David,

I'm using keywords to build category specific pages, like:
[pto search = "Apple Iphone 5" ]
{link saved}

When I'm using this PT only shows one page, without the search banner and navigation.

My normal search (e.g. when I search for "Apple Iphone 5") returns more than 1.000 results, the banner (stating the number of results) and the navigation...
{link saved}

Can you help me get clear what goes wrong?

Thanks a lot!
Koen

Submitted by support on Sun, 2013-12-08 09:44

Hi Koen,

As you've seen the banner / navigation are not included in the output when called in via the shortcode but this can be changed easily. In pto_search.php look for the following code at line 385:

  if ("/".$pagename == $pto_config_permalink)

...and REPLACE with:

  if (1)

...and similarly the following code at line 395:

  ("/".$pagename == $pto_config_permalink)

...and REPLACE with:

  (1)

Cheers,
David.
--
PriceTapestry.com

Submitted by koen on Sun, 2013-12-08 12:44

Thanks a lot David, this works!
Strange thing is that the search filters will only appear on page 2 and further; not on the first page with the results. Do you have any idea how i can get them appear already on the first page?

Thanks for your excellent support, even on Sundays :)

Cheers,
Koen

Submitted by support on Mon, 2013-12-09 09:16

Hello Koen,

A final change is required for filters apologies for missing that; in pto_search.php look for the following code at line 1008:

  if ("/".$pagename != $pto_config_permalink) return;

...and either comment out or delete that line to enable filters display on pages other than the main /shopping page. There is a slightly caveat depending on the page generation sequence so if filters still do not appear let me know and there is a futher modification that can be made...

Cheers,
David.
--
PriceTapestry.com