Hi mvlvek,
A screenshot of my project (dogvalley.be) in alpha-stage rebuild with GS and I18N, following your advice: adding the grandparent-pages (provinces) as tags _prov_province-x.
There is a lot of work todo, but it works
For the parent using this snippet in city.php:
I don't know, it is GS related, but when a parent-page (city) has hyphen '-' in the url, by example:
../provincie/antwerpen/heist-op-den-berg/
It does not show the locations (child-pages).
When edit the city-page slug in dashboard to heistopdenberg (without '-'):
../provincie/antwerpen/heistopdenberg/
Then shows the locations correct.
Is there a way allow the '-' character in the search-plugin?
Regards,
Christophe
A screenshot of my project (dogvalley.be) in alpha-stage rebuild with GS and I18N, following your advice: adding the grandparent-pages (provinces) as tags _prov_province-x.
There is a lot of work todo, but it works
For the parent using this snippet in city.php:
Code:
<?php
$citySlug = '_parent_'.$data_index->url; // use the url from the city.php (parent)
$result = return_i18n_search_results($citySlug, $words=null, $first=0, $max=9999, $order=null, $lang=null);
?>
I don't know, it is GS related, but when a parent-page (city) has hyphen '-' in the url, by example:
../provincie/antwerpen/heist-op-den-berg/
It does not show the locations (child-pages).
When edit the city-page slug in dashboard to heistopdenberg (without '-'):
../provincie/antwerpen/heistopdenberg/
Then shows the locations correct.
Is there a way allow the '-' character in the search-plugin?
Regards,
Christophe