FOROS DE INFORMATICA
Noticias: Habilitada la opción de Karma para usuarios con más de 50 mensajes
 
*
Bienvenido(a), Visitante. Por favor, ingresa o regístrate.
¿Perdiste tu email de activación?
Mayo 05, 2024, 04:18:16


Ingresar con nombre de usuario, contraseña y duración de la sesión


Páginas: [1]
  Imprimir  
Autor Tema: Problema con wordpres  (Leído 2913 veces)
tinterito
Nuevo
*

Karma:0
Desconectado Desconectado

Mensajes: 1


« : Febrero 11, 2012, 05:35:54 »

He montado una pagina web con Wordpress y necesito ayuda:

Estoy harto de buscar en miles de web, y nunca consigo que me salga eso de "Leer mas" o "Read More" y  que en mis entradas se vea solo el titulo, y OJO! yo solo quiero que se vea el titulo en las entradas, las paginas quiero que se vean enteras, ya sabéis, wordpress ofrece para publicar entradas y paginas, y yo solo quiero que en las entradas solo se vea el titulo, porque me las muestra entera...
Un ejemplo:

Veis se muestra la entrada completa, ami me gustaria que solo se mostrara el titulo, que solo pusiera:
Paranoia 1
Bienvenido a Astro rey
y cuando clikease uno de esos titulos, me llevase a su entrada para leerla.


asi como esta web por ejemplo: http://www.gratisprogramas.org/

veis? solo se ve el titulo

Os dejos mis archivos functions.php y el index.php,  de mi theme decirme que tengo que modificar.

Mi archivo functions.php de mi theme es este:

<?php
define('HEADER_IMAGE_WIDTH', '810');
define('HEADER_IMAGE_HEIGHT', '175');
define('HEADER_TEXTCOLOR', '000000');
$content_width = "517";
add_theme_support('post-thumbnails');
add_theme_support('automatic-feed-links');

add_custom_background('modernnotepad_custom_background');
function modernnotepad_custom_background() {
    /* Get the background image. */
    $image = get_background_image();
    /* If there's an image, just call the normal WordPress callback. We won't do anything here. */
    if ( !empty( $image ) ) {
            _custom_background_cb();
            return;
    }
    /* Get the background color. */
    $color = get_background_color();
    /* If no background color, return. */
    if ( empty( $color ) )
            return;
    /* Use 'background' instead of 'background-color'. */
    $style = "background: #{$color};";
?>
<style type="text/css">body { <?php echo trim( $style ); ?> }</style>
<?php
}

register_nav_menu('main', 'Main navigation menu');

function modernnotepad_styles(){
    if( !is_admin() ){
        wp_register_style('modernnotepad_print', get_template_directory_uri().'/print.css', '', 'false', 'print');
        wp_register_style('modernnotepad_ie', get_template_directory_uri().'/ie.css');

        wp_enqueue_style( 'modernnotepad_print');
        wp_enqueue_style( 'modernnotepad_ie');
    }
}
add_action( 'wp_print_styles', 'modernnotepad_styles' );

add_action( 'widgets_init', 'modernnotepad_widgets_init' );
function modernnotepad_widgets_init() {
        register_sidebar( array(
            'name'  => 'Sidebar',
            'id'    => 'sidebar',
            'description'   => 'Right Sidebar',
            'before_title'=>'<div class="header"><h3>',
            'after_title'=>'</h3></div>',
            'before_widget'=>'<div class="box">',
            'after_widget'=>'</div>'
        ) );
}


function modernnotepad_header_style() {
    if (get_header_image()!='') {
    ?><style type="text/css">
        #headerimg {
            width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
            height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
            background: #000 url(<?php header_image(); ?>) no-repeat;
            margin-bottom: 10px;
            margin-top: -5px;
        }
    </style><?php
    }
}

function modernnotepad_admin_header_style() {
    ?><style type="text/css">
        #headerimg {
            width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
            height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
        }
    </style><?php
}
add_custom_image_header('modernnotepad_header_style', 'modernnotepad_admin_header_style');





Y el index.php de mi theme es este:

<?php get_header(); ?>
<div id="main-block">
    <div id="content">
       <?php if (have_posts()) : ?>
            <ul>
               <?php while (have_posts()) : the_post(); ?>
                   <li <?php post_class() ?> id="post-<?php the_ID(); ?>">
                      <div class="content">
                            <div class="title">
                               <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute( array('before' => 'Permalink to: ', 'after' => '')); ?>"><?php the_title(); ?></a></h2>
                            </div>
                            <div class="postdata">
                                <span class="category"><?php the_category(', ') ?></span>
                                <span class="date"><?php the_time('d.m.Y') ?></span>
                                <span class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
                            </div><!--.postdata-->
                          <div class="entry">
            <?php the_post_thumbnail() ?>
                              <?php the_content('Read&nbsp;more...'); ?>
                          </div>
                                <?php wp_link_pages() ?>
                          <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
                                <p class="permalink"><a href="<?php the_permalink();?>">Permalink</a></p>
                      </div>
                      <div class="footer"></div>
                   </li>
               <?php endwhile; ?>
             </ul>
             <div class="nav-entries">
              <span class="prev"><?php next_posts_link('<span>&laquo; Previous Entries</span>') ?></span>
            <span class="next"><?php previous_posts_link('<span>Next Entries &raquo;</span>') ?></span>
          </div>
        <?php else : ?>
           <h2 class="t-center">Not Found</h2>
           <p class="t-center">Sorry, but you are looking for something that isn't here.</p>
       <?php endif; ?>
    </div><!--#content-->
</div><!--#main-block-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>


Ayudarme por favor, lo agradeceré mucho.
« Última modificación: Febrero 11, 2012, 05:37:46 por tinterito » En línea
Gelo
Adicto al foro
****

Karma:2
Desconectado Desconectado

Mensajes: 257



WWW
« Respuesta #1 : Febrero 13, 2012, 02:32:57 »

Eso en wordpress con los plugins tenían 2 que te hacian eso perfecto, lo que no recuerdo los nombres, entra en la página de los plugins de wordpress  miratelos
En línea
Páginas: [1]
  Imprimir  
 
Ir a:  

Impulsado por MySQL Impulsado por PHP Powered by SMF 1.1.13 | SMF © 2006-2009, Simple Machines LLC

XHTML 1.0 válido! CSS válido! Dilber MC Theme by HarzeM