Ver Mensaje Individual
  #10 (permalink)  
Antiguo 27/09/2012, 02:49
Avatar de juegosdelogica
juegosdelogica
 
Fecha de Ingreso: febrero-2011
Ubicación: Madrid
Mensajes: 82
Antigüedad: 13 años, 1 mes
Puntos: 7
Respuesta: ¿Cómo poner botones sociales debajo del título de cada página?

Y el código de loop-page.php por si acaso
Código PHP:
Ver original
  1. <?php
  2.  
  3. /**
  4.  
  5.  * The loop that displays a page.
  6.  
  7.  *
  8.  
  9.  * The loop displays the posts and the post content.  See
  10.  
  11.  * http://codex.wordpress.org/The_Loop to understand it and
  12.  
  13.  * http://codex.wordpress.org/Template_Tags to understand
  14.  
  15.  * the tags used in it.
  16.  
  17.  *
  18.  
  19.  * This can be overridden in child themes with loop-page.php.
  20.  
  21.  *
  22.  
  23.  * @package WordPress
  24.  
  25.  * @subpackage Twenty_Ten
  26.  
  27.  * @since Twenty Ten 1.2
  28.  
  29.  */
  30.  
  31. ?>
  32.  
  33.  
  34.  
  35. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  36.  
  37.  
  38.  
  39.                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  40.  
  41.                     <?php if ( is_front_page() ) { ?>
  42.  
  43.                         <h2 class="entry-title"><?php the_title(); ?></h2>
  44.  
  45.  
  46.  
  47.                     <?php } else { ?>
  48.  
  49.                         <h1 class="entry-title"><?php the_title(); ?></h1>
  50.  
  51.                     <?php } ?>
  52.  
  53.                     <div class="entry-content">
  54.  
  55.                         <?php the_content(); ?>
  56.  
  57.                         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  58.  
  59.                         <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
  60.  
  61.                     </div><!-- .entry-content -->
  62.  
  63.                 </div><!-- #post-## -->
  64.  
  65.  
  66.  
  67.                 <?php comments_template( '', true ); ?>
  68.  
  69.  
  70.  
  71. <?php endwhile; // end of the loop. ?>

Cuando añado el código de los botones aquí, sí me aparecen pero mal. Sin embargo en fuctions me sale perfecto. Añado captura para que veas. Gracias.
__________________
Magos Madrid
Mago para fiestas