Get_Template_Part variable
-
Dear all,
It’s for sure a very basic question to most of you but I have three templates (EN,FR,DE). What I want is that the language of a select article is displayed here :
get_template_part( ‘template-parts/content’, here );
I’ve added the following in each of my three dedicated templates : <?php $var = ‘en’; ?>
What I want now is to grab that EN (for example) and add it automatically here , I tried to add the following :
get_template_part( ‘template-parts/content’, $var );But that doesn’t work…
Any idea ?
Many thanks !!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Get_Template_Part variable’ is closed to new replies.