Simple page-based website
-
Hi,
I’m designing a multi-language WordPress website in which each page loads a specific page content depending on the selected language. The homepage will show the contents from
page_id=2
(which is in French, set as default), but if the user changes the language it will show the contents frompage_id=8
(in English). I’m only doing this with index.php, using WP Query.My problem is: how do I replicate this CMS-like logic with the remaining pages? I mean, how do I make the “About” page show the contents from
page_id=4
or the “Contact” page show the contents frompage_id=12
(in English), for example? Also, is there any smarter way of doing this? Probably with custom page templates, each one for each page? And what’s the best way to maintaing a pretty permalink without having to use URLs likehttps://example.com/page-7
?
- The topic ‘Simple page-based website’ is closed to new replies.