WordPress.org

Forums

I want to have auto readmore (3 posts)

  1. FoonMod
    Member
    Posted 4 years ago #

    Hi, I have read a lot of suggest concerned to "auto readmore". By replace the content() with the excerpt() at index.php at theme.
    But.... I think that I saw twice at that file but see nothing.
    please see below
    -------------------
    <?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 Twenty_Ten
    * @since Twenty Ten 1.0
    */

    get_header(); ?>

    <div id="container">
    <div id="content" role="main">

    <?php
    /* 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><!-- #content -->
    </div><!-- #container -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    ---------------

    Wonder why I could not find ?...

    Also, if any expert know how I can do the 'auto readmore' please tell me.

    Thank you..

  2. 123milliseconds
    Member
    Posted 4 years ago #

    get_template_part( 'loop', 'index' );

    look in loop-index.php

  3. FoonMod
    Member
    Posted 4 years ago #

    Thank 123 milliseconds.
    But I afraid that I have found only
    loop,loop-attachment,loop-page and loop-single

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags