html - How to pass content in to different template parts in Wordpress (split screen) -


i have created split screen template want use across various pages. want content different on both sides in of these templates. instance on 'about us' there nav menu on left , content on right. on 'services' there content on left , right of split screen.

so how can change content added in space according page on? using acf if makes difference.

how pass in different content each side of these template parts? or there way?

i considering adding split screen each page, isn't dry. split screen template html below:

<section id="content">     <section class="left-split">         <div class="left-split-content">              // left side content here          </div><!-- left split content -->     </section><!-- left split -->      <section class="right-split" data-spy="scroll" data-target="#myscrollspy" data-offset="70">         <div class="right-split-content clearfix">              // right side content here          </div><!-- content -->     </section><!-- right split content -->  </section><!-- content --> 

php can use $_get transfer data in web link page page

for example, want transfer "fruit" = "apple"
http://www.example.com?fruit=apple

<?php $fruit = $_get['fruit']; // value "apple" 

more info please refer below links:
http://www.w3schools.com/php/php_forms.asp
http://php.net/manual/en/reserved.variables.get.php


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -