kirkov
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] English frontpage just shows Languages taxonomy pageThe issues does not appear in the production environment.
Which is strange, because my development environment is an exact copy of the production.
So unless you want to look further into the issue, I’ll mark this as resolved.
Forum: Plugins
In reply to: [Polylang] English frontpage just shows Languages taxonomy pageThe English front page slug is “home”.
Forum: Plugins
In reply to: [Polylang] English frontpage just shows Languages taxonomy pageAlright, found out where it went wrong:
In the file:
/frontend/choose-lang.phpif ($this->options['redirect_lang'] && is_tax('language') && $this->page_on_front && <strong>(count($query->query) == 1</strong> || (is_paged() && count($query->query) == 2))) {The
$query->querycontains the following entries:array(2) { ["page_id"]=> string(3) "en/" ["lang"]=> string(2) "en" }So
count($query->query)will return 2.If I change it to:
(count($query->query) == 2, the English frontpage shows just fine.So my questions is: Why ensure
count($query->query)equals 1 ?Regards,
MarkForum: Plugins
In reply to: [Polylang] English frontpage just shows Languages taxonomy pageThanks for your answer.
They are both translated and linked together. Are there any other things I can check?
Or maybe point me to where the lookup are in the plugin code, and I can investigate?
Thanks,
MarkForum: Plugins
In reply to: [Polylang] English frontpage just shows Languages taxonomy pageAlso, I’m using static frontpage.