WordPress.org

Forums

Show Full Post in Home (4 posts)

  1. leomiranda92
    Member
    Posted 1 year ago #

    Hello,

    My site is showing only the summary of the posts on the homepage.
    I would like to show completely.

    I found this code in the functions.php file:

    /////////////////////////////////////
    // Add Content Limit
    /////////////////////////////////////
    
    if ( !function_exists( 'excerpt' ) ) {
    function excerpt($limit) {
      $excerpt = explode(' ', get_the_excerpt(), $limit);
      if (count($excerpt)>=$limit) {
        array_pop($excerpt);
        $excerpt = implode(" ",$excerpt).'...';
      } else {
        $excerpt = implode(" ",$excerpt);
      }
      $excerpt = preg_replace('<code>\[[^\]]*\]</code>','',$excerpt);
      return $excerpt;
    }
    }
    
    if ( !function_exists( 'content' ) ) {
    function content($limit) {
      $content = explode(' ', get_the_content(), $limit);
      if (count($content)>=$limit) {
        array_pop($content);
        $content = implode(" ",$content).'...';
      } else {
        $content = implode(" ",$content);
      }
      $content = preg_replace('/\[.+\]/','', $content);
      $content = apply_filters('the_content', $content);
      $content = str_replace(']]>', ']]>', $content);
      return $content;
    }
    }
  2. esmi
    Forum Moderator
    Posted 1 year ago #

    What theme are you using? Where did you download it from?

  3. leomiranda92
    Member
    Posted 1 year ago #

    Braxton from Themeforest.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm sorry but as you appear to be using a commercial theme, you need to seek support from the theme's developer/vendor. We do not support commercial products here.

Topic Closed

This topic has been closed to new replies.

About this Topic