Posted By

Daidaros on 03/19/09


Tagged

wordpress


Versions (?)

Opciones vía Custom Field


 / Published in: PHP
 

Hecho por Kyuumeitai.

  1. <?php
  2.  
  3. $menu = get_post_meta($post->ID, 'menu', $single = true);
  4.  
  5. if($menu == '1') {
  6. include (TEMPLATEPATH . '/content-menu01.php');
  7. }
  8. elseif($menu == '2') {
  9. include (TEMPLATEPATH . '/content-menu02.php');
  10. }
  11. elseif($menu == '3') {
  12. include (TEMPLATEPATH . '/content-menu03.php');
  13. }
  14. elseif($menu == '4') {
  15. include (TEMPLATEPATH . '/content-menu04.php');
  16. }
  17. elseif($menu == '5') {
  18. include (TEMPLATEPATH . '/content-menu05.php');
  19. }
  20. else {
  21. /* Sidebar com�ºn */
  22.  
  23. get_header(); ?>
  24.  
  25. (etc ... )

Report this snippet  

You need to login to post a comment.