how to find home page id for different language page
-
Hello,
I have a multilingual site I’m working on in WPML. I want to prevent some widgets from appearing on the Spanish version of the site. I am using WidgetLogic to do this and I am able to specify the pages to exclude. However, I can’t figure out the conditional statement to exclude the home page for the Spanish site.
I have the Spanish site set up as http://www.example.com/?lang=es
The conditional tag I’m using for the other pages is:
!is_page(array(229,249,254,256,259,262,265,281,292))
I can’t use !is_home() because that will exclude the English home page.
Any help would be greatly appreciated!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘how to find home page id for different language page’ is closed to new replies.