Forum Replies Created

Viewing 1 replies (of 1 total)
  • You need to remove the space between PHP tags. The best thing is to not close the php tags at all.

    Below is how your functions.php should look like:

    <?php
    // php tag start here and it does not close
    
    add_theme_support('post-thumbnails');
    
    function new_excerpt_length($length) {
    return 55;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    
    function new_excerpt_more($more) {
    global $post;
    return 'ID) . '">[ادامه]';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    // no closing php tag
Viewing 1 replies (of 1 total)