Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/04/2011, 17:09
Avatar de pao01
pao01
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 1.875
Antigüedad: 15 años, 10 meses
Puntos: 351
Respuesta: Campos personalizados desde páginas.

Gracias Zanguanga por la respuesta.

Te cuento, desactivé uno a uno los plugins y no hay cambios.

Subo los códigos del home y del js del slide, a ver si alguien puede orientarme, porque no doy con ello. Muchas Gracias.

Código PHP:
Ver original
  1. <?php get_header(); ?>
  2.  
  3. <!-- begin slider -->
  4.     <!-- begin slider -->
  5.             <div id="slider" >
  6.                     <div class="stepcarousel">
  7.                         <div class="belt">
  8.                         <?php
  9.                         $slider_query = new WP_Query($query_string.'&posts_per_page=-1');
  10.                         if ($slider_query -> have_posts()) : while ($slider_query -> have_posts()) : $slider_query -> the_post();
  11.                         $featured = get_post_meta($post->ID, 'featured', $single = true);
  12.                         $featured_image = get_post_meta($post->ID, 'featured_image', $single = true);
  13.                         if($featured =='1'){?>
  14.                             <!-- slider item -->
  15.                             <div class="panel">
  16.                             <div class="image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $featured_image ?>" border="0" alt="<?php the_title(); ?>" /></a></div>
  17.                                 <div class="right">
  18.                                     <div class="text">
  19.                                         <div class="featured"><img src="<?php bloginfo('template_url'); ?>/images/ico_star.png" alt="Featured" /> FEATURED PROJECT</div>
  20.                                         <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  21.                                         <?php the_excerpt(); ?>
  22.                                     </div>
  23.                                 </div>
  24.                             </div>
  25.                             <?php } ?>
  26.                     <?php endwhile; ?>
  27.                     <?php endif; ?>
  28.                         </div>
  29.                     </div>
  30.             </div>
  31.             <!-- end slider -->
  32.     <!-- begin home boxes -->
  33.     <?php $box1=get_post(get_option('webfolio_home_box1'));
  34.               $box2=get_post(get_option('webfolio_home_box2'));
  35.               $box3=get_post(get_option('webfolio_home_box3'));
  36.               if(get_option('webfolio_home_box1')!= null && get_option('webfolio_home_box2')!= null && get_option('webfolio_home_box3')!= null){?>
  37.     <div id="homeBoxes" class="clearfix">
  38.         <div class="homeBox">
  39.             <h2><?php echo $box1->post_title?></h2>
  40.             <?php echo apply_filters('the_content', $box1->post_content);?>
  41.             <a href="<?php echo get_option('webfolio_home_box1_link')?>" class="more-link">read more</a>
  42.         </div>
  43.         <div class="homeBox">
  44.             <h2><?php echo $box2->post_title?></h2>
  45.             <?php echo apply_filters('the_content', $box2->post_content);?>
  46.             <a href="<?php echo get_option('webfolio_home_box2_link')?>" class="more-link">read more</a>
  47.         </div>
  48.         <div class="homeBox last">
  49.             <h2><?php echo $box3->post_title?></h2>
  50.             <?php echo apply_filters('the_content', $box3->post_content);?>
  51.             <a href="<?php echo get_option('webfolio_home_box3_link')?>" class="more-link">read more</a>
  52.         </div>
  53.     </div>
  54.     <?php }?>
  55.     <!-- end home boxes -->
  56.  
  57.  
  58. <!-- slider setup -->
  59. <script type="text/javascript">
  60.             stepcarousel.setup({
  61.                 galleryid: 'slider', //id of carousel DIV
  62.                 beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
  63.                 panelclass: 'panel', //class of panel DIVs each holding content
  64.                 autostep: {enable:true, moveby:1, pause:5000},
  65.                 panelbehavior: {speed:500, wraparound:false, persist:true},
  66.                 defaultbuttons: {enable: true, moveby: 1, leftnav: ['<?php bloginfo('template_directory'); ?>/images/but_prev.png', 653, 300], rightnav: ['<?php bloginfo('template_directory'); ?>/images/but_next.png', -170, 300]},
  67.                 statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
  68.                 contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
  69.             })
  70.            
  71.             </script>
  72.  
  73. <?php get_footer(); ?>
__________________
Entre más estrecha la mente, más grande la boca.- Ted Cook
Autosconarte-Blog