I am doing a localization of some site that is using WordPress, and I'd like to have URL listed in page template so that two language enter-links with each other.
For example, we have:
http://site_url.com/<dynamic link>
for English site, and
http://site_url.com/jp/<dynamic link>
for Japanese site.
The website is mostly consist of Pages and not Posts. I cannot use page ID since the main site (English) has different page IDs than Japanese ones. All the pages have parent page + page slug.
I'm sure there is some syntax to just get the <dynamic links> part, but I just cannot find it.
Thanks in advance!
ps. Sadly, language switcher is not an option, since... the site admin doesn't want to use it :S