• Hello.

    I have an site whit a theme from jinsona but i want to show the full post.
    does anyone know?

    in the functions.php:

    /* CUSTOM EXCERPTS */
    
    function wpe_excerptlength_blurb($length) {
        return 10;
    }
    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;
    }

    In index.php

    <?php wpe_excerpt('wpe_excerptlength_index', ''); ?>
    <a class="morer" href="<?php the_permalink() ?>">Continue</a>
    <div class="clear"></div>

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Show full post?’ is closed to new replies.