WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] can't see exerpts on post page (2 posts)

  1. marrie125
    Member
    Posted 1 year ago #

    Hello to all. I am using twentytwelve and I tried to modify it to have excerpts on the post page not the full post as my posts are rather long. I don't want to have the more tag in every single post like some things suggest. I have 7 years worth of posts, some wiht out show notes. I want to modify the content.php. file to do this like the post I was replying to. You can find it here.

    Here is my link to my content.php file.

    Hope that helps.

  2. marrie125
    Member
    Posted 1 year ago #

    Ok. I followed the directions in this blog post.

    http://zeaks.org/tutorials/display-excerpts-in-twenty-twelve-theme/

    wonderful post btw. It workes, except the read more link does not. It shows the code. How do I change this?

    code for the functions php in my child theme of twentytwelve:

    <?php 
    
    // Remove the ... from excerpt and change the text
    function change_excerpt_more()
    {
      function new_excerpt_more($more)
        {
        // Use .read-more to style the link
          return ' < span class = "Click-To-Read-More." > < a href = "' . get_permalink($post->ID) . '" > Click to read more. ยป </ a > </ span > ';
        }
      add_filter('excerpt_more', 'new_excerpt_more');
    }
    add_action('after_setup_theme', 'change_excerpt_more');

    link to site having issues

    http://tffppodcast.com/listen

    As you can see the excerpt works except the read more link is not working. I'm trying to customise that fraze to read something like "Continu reading" or "Click to continu reading" or something like that. thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic