WordPress.org

Ready to get started?Download WordPress

Forums

A Problem Showing Full Posts (9 posts)

  1. dirtyscarab
    Member
    Posted 6 years ago #

    Hey guys. I'm using a heavily modified template for my band's website and I want to remove the feature that shortens my posts on the main page. (You have to click the post title to get access to the full post). The reason is, when I add links or images to my posts, they don't show up on the preview, only when you click the title can you see them. I'd like to get rid of this somehow.

    (And I already tried checking 'full post' in the reading options in the dashboard)

    It's obviously some code in the theme's template somewhere that's doing this.

    This is the original template:

    http://www.upstartblogger.com/wpthemes/

    This is my site

    http://www.foolsandhorses.net/social

    Thanks!

  2. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Look in your main page template. You'll see a tag that looks like this.
    <? php the_excerpt(); ?>
    change it to
    <? php the_content(); ?>
    Resources:
    http://codex.wordpress.org/Template_Tags/the_excerpt
    http://codex.wordpress.org/Template_Tags/the_content
    http://codex.wordpress.org/Stepping_Into_Template_Tags
    http://codex.wordpress.org/Stepping_Into_Templates

  3. Sridhar Katakam
    Member
    Posted 6 years ago #

    In your theme's index.php, look for code similar to:

    <?php the_content('Read the rest of this entry »'); ?>

    Replace that with:

    <?php the_content(); ?>

  4. Jeremy Clark
    Moderator
    Posted 6 years ago #

    No thats not problem it's the problem is the excerpt you see the [...] at the end of posts.

  5. dirtyscarab
    Member
    Posted 6 years ago #

    Here's the page template: Seems that it alreadys says the_content...

    [Code moderated wrong template see post below]

  6. Jeremy Clark
    Moderator
    Posted 6 years ago #

    No not your page template your index template. Some themes call it the main page template others call it the index. Also when posting long code like that use http://wordpress.pastebin.ca and report the link back here. It makes the forums much easier to read.

  7. dirtyscarab
    Member
    Posted 6 years ago #

    Sorry.

    Here's the link to the 'Main Index Template'

    Thanks

    http://wordpress.pastebin.ca/870896

  8. Sridhar Katakam
    Member
    Posted 6 years ago #

    Do what jeremyclark said (2nd post in this topic).

    Line 11.

  9. dirtyscarab
    Member
    Posted 6 years ago #

    Resolved.

    Thank you Srikat / Jeremy.

Topic Closed

This topic has been closed to new replies.

About this Topic