• Resolved ingenalls

    (@ingenalls)


    Dear WordPress gurus,

    A few days ago I downloaded the WP Theme Shuttershoot, available at:
    http://www.web2feel.com/shuttershot/

    Since than I have been trying, screaming and trying again to remove the excerpts funtion on the blog page. I must admit that I am not the most experienced wordpress or htlm – as you probably realised already – but I think I got the basics at least.
    Anyhow, I think that the changed that I want to do has to be made in the functions.php wich looks like this:

    /* CUSTOM EXCERPTS */
    
    function wpe_excerptlength_index($length) {
        return 70;
    }
    
    function wpe_excerpt($length_callback='', $more_callback='') {
        global $post;
        if(function_exists($length_callback)){
            add_filter('excerpt_length', $length_callback);
        }
        if(function_exists($more_callback)){
            add_filter('excerpt_more', $more_callback);
        }
        $output = get_the_excerpt();
        $output = apply_filters('wptexturize', $output);
        $output = apply_filters('convert_chars', $output);
        $output = '<p>'.$output.'</p>';
        echo $output;
    }
    
    function new_excerpt_more($more) {
    return '<a class="rmore" href="'. get_permalink($post->ID) . '">' . '&nbsp;&nbsp; Read More ...' . '</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    I have tried booth to add and remove things from the code above with the result of either database error or invisible posts. So I really need you help.

    Just to makes things more clear, I want to show the full content (text) directly on the blog page. Without any “read more” buttons.

    Many thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I suggest you use a child theme and edit index.php. Change the_excerpt() to the_content().

    If you don’t want to create a child theme, you can edit the blog template page (likely index.php), and just change the_excerpt() (or whatever custom function they may call to grab the excerpt) to the_content() on that page.

    However, the_content() can be used to display the read more too, so you may have to include a few lines of code on the template file you’re using to display the blog…

    <?php global $more;    // Declare global $more (before the loop). ?>
    <?php $more = 1;       // Set (inside the loop) to display all content, including text below more. ?>

    Don’t edit the theme. If you do, your changes will be lost when the theme is updated to a newer version.

    Thread Starter ingenalls

    (@ingenalls)

    Thanks so much! I have been trying and trying and just one word made the difference. I tried to edit the theme itself and everything worked just as I wanted. So now the challenge wil be to create a child theme. Once again – Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Skip excerpts, show full post’ is closed to new replies.