What's holding that incude is...


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. /* Template Name: Team Member Sidebars
  3. */
  4. ?>
  5.  
  6. <?php $key="choose-invest-prof" ?>
  7. <?php $value= get_post_meta($post->ID, $key, true); ?>
  8.  
  9. <?php
  10. if ($value=="investment-professional"): {
  11. include('investment-professionals-sidebar.php');
  12. include('operating-partners-sidebar.php');
  13. }
  14. ?>
  15. <?php else: ?>
  16. <?php
  17. include('operating-partners-sidebar.php');
  18. include('investment-professionals-sidebar.php');
  19. ?>
  20. <?php endif ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.