WordPress.org

Support

Support » Themes and Templates » Problem with cutting post text on homepage.

Problem with cutting post text on homepage.

  • SBDomains
    Member

    @sbdomains

    Hello. I have bought a theme, which looks perfect for my website, but it’s creator couldn’t explain me how to make it show full posts on homepage and categories (things that he mentioned on Options doesn’t work at all)… The thing is that I need to see “Like” buttons and full text of post on homepage or a category, but I see full post only when I go to single post…

    What I’ve found that there is file called content-limit.php and it looks like that:

    <?php

    // functions for cutting text content
    function excerpt($num) {
    $limit = $num+1;
    $excerpt = explode(‘ ‘, get_the_excerpt(), $limit);
    array_pop($excerpt);
    $excerpt = implode(” “,$excerpt).”A”;
    echo $excerpt;
    }

    function content($num) {
    $theContent = get_the_content();
    $output = preg_replace(‘/<img[^>]+./’,”, $theContent);
    $limit = $num+1;
    $content = explode(‘ ‘, $output, $limit);
    array_pop($content);
    $content = implode(” “,$content).”B”;
    echo $content;
    }

    function title($num) {
    $limit = $num+1;
    $title = explode(‘ ‘, get_the_title(), $limit);
    array_pop($excerpt);
    $title = implode(” “,$title).”C”;
    echo $title;
    }

    ?>

    I tried to change that on my own, so I could see a full posts in Homepage and categories, but I always came up with some error… Maybe anyone would know how to change that, so I could see full post?

    Also I’ve found limit mentioned on index.php and I’ve deleted it, but nothing hapenned…

    If anyone here can help me, I beg You!

    Here is an example:
    http://durnynas.lt/ (Homepage)
    http://durnynas.lt/automobiliu-salono-reklama (this is how I would like it to look like on the homepage or category [except comments])

    PLEASE!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with cutting post text on homepage.’ is closed to new replies.