Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/05/2013, 03:25
ditron77
 
Fecha de Ingreso: septiembre-2009
Mensajes: 25
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Insertar shortcode página inicial

Gracias por contestar, pues iendo en el panel de wordpress a Apariencia-->Editor-->Eligo el archivo llamado Plantilla de la página principal (index.php), cuyo código es el siguiente:

Código:
<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query. 
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Rollingtheme
 * @since Rollingtheme 1.0
 */

get_header(); ?>

		<?php 
		$sidebarposition = ts_get_option( 'ts_sidebar_position'); 
		$custom_fields = get_post_custom( get_the_ID() );
		$pagelayout = $sidebarposition;
		
		if(isset( $custom_fields['ts_layout'][0] ) && $custom_fields['ts_layout'][0]!='default'){
			$pagelayout = $custom_fields['ts_layout'][0];
		}
		?>
	<div class="container">
        <section id="maincontent" class="twelve columns">
            
            <?php if($pagelayout!='one-col'){ ?>
            
            <section id="content" class="eight columns <?php if($pagelayout=="two-col-left"){echo "positionleft alpha";}else{echo "positionright omega";}?>">
                <div class="main">
            
            <?php } ?>
            
                    <?php
                    global $more; $more = 0;
                    /* Run the loop to output the posts.
                    * If you want to overload this in a child theme then include a file
                    * called loop-index.php and that will be used instead.
                    */
                    get_template_part( 'loop', 'index' );
                    ?>	
                    <div class="clear"></div><!-- clear float --> 
            
            <?php if($pagelayout!='one-col'){ ?>
            
                </div><!-- main -->
            </section><!-- content -->
            <aside id="sidebar" class="four columns <?php if($pagelayout=="two-col-left"){echo "positionright omega";}else{echo "positionleft alpha";}?>">
                <?php get_sidebar();?>  
            </aside><!-- sidebar -->
            <?php } ?>         
        </section><!-- maincontent -->
	</div>
	

<?php get_footer(); ?>