WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Show part of the posts (13 posts)

  1. roxer82
    Member
    Posted 8 years ago #

    Hi there,
    I would like to show part of the posts at the home and at the category and then you can read all the article when you get in the post. How can I do it?
    Thanks in advanced!

  2. Samuel B
    moderator
    Posted 8 years ago #

    You should have a "more" button at the top of your edit screen. It inserts this tag:
    <!--more-->
    or you can insert it manually.
    Wherever you put the tag, only that much is displayed in "home". The whole article appears when you get the post or read remainder.

  3. roxer82
    Member
    Posted 8 years ago #

    Thanks for your answer but where should I add that line? and can I say it how many characters it must show?

  4. Samuel B
    moderator
    Posted 8 years ago #

    You can add it anywhere you want to break up the post. You can have as few or many characters as you want.

    You can read more about it here:
    http://codex.wordpress.org/Customizing_the_Read_More

  5. roxer82
    Member
    Posted 8 years ago #

    Thanks!!!

  6. roxer82
    Member
    Posted 8 years ago #

    Is there any way to edit the "Read the entire entry ยป"?

  7. roxer82
    Member
    Posted 8 years ago #

    I would like to know how to delete the line that it's adding when I read the whole article:
    <code><a id="more-221376"></a></code>
    Do you know how I can delete it?
    Thanks in advanced!

  8. Samuel B
    moderator
    Posted 8 years ago #

    To edit the "Read the entire entry":
    Open up the
    loop.php
    Look for:
    <div class="itemtext">
    <?php the_content("Read the entire entry '" . the_title('', '', false) . "'"); ?>
    </div>

    Change "Read the entire entry" to whatever you want. Be careful of the spacing with the' and "

  9. roxer82
    Member
    Posted 8 years ago #

    Thanks for your answer but when click on read more it shows a table where the <!--more--> was. How can I remove it?

  10. flakkito
    Member
    Posted 8 years ago #

    it might be in your theme's index.php

  11. roxer82
    Member
    Posted 8 years ago #

    It isn't there, do you know where it can be if it isn't there?

  12. roxer82
    Member
    Posted 8 years ago #

    Here is my theme index.php but I can find where it writes this, doesn't anyone know what should I do to remove it? I use SubLiminal

    <?php get_header(); ?>

    <ul id="pages">
    <?php wp_list_pages('title_li='); ?>
    </ul>

    <div id="sidebar">
    <?php get_sidebar(); ?>
    </div>

    <div id="content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post">
    <h2 id="post-<?php the_ID(); ?>"><span><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span></h2>
    <div class="entry">
    <?php foreach((get_the_category()) as $cat) $cat=$cat->cat_ID; ?>
    <?php the_content('Leer el articulo completo &raquo;'); ?>
    </div>
    <div class="relinfo">
    <?php the_time('F jS, Y @ h:i A'); ?> &bull; se encuentra en <?php the_category(', '); ?><?php edit_post_link('Edit',' &bull; ',''); ?>
    <ul>
    <li class="permalink"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Permalink</a></li>
    <li class="commentslink"><?php comments_popup_link('Sin Comentarios', 'Comentarios [1]', 'Comentarios [%]'); ?></li>
    </ul>
    </div>
    <!-- <?php trackback_rdf(); ?> -->

    <?php comments_template(); ?>
    </div>
    <?php endwhile; ?>
    <?php else : ?>
    <h2><span>Sin resultados</span></h2>
    <p><strong>RESULTADOS DE TU BUSQUEDA</strong></p>
    <p><?php _e("Lo siento, no se encontraron resultados."); ?></p>
    <?php endif; ?>
    </div>

    <?php wp_pagebar(array('before'=>'Page: ', 'before'=>' ', 'after'=>' ', 'tooltip'=>true, 'tooltip_text'=>'Page'))?>
    <?php get_footer(); ?>

  13. roxer82
    Member
    Posted 8 years ago #

    I just found it, it was a line at the style.css
    Thanks everybody :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags