Viewing 1 replies (of 1 total)
  • If you have more that one truncate content in the same page, for example, in two different posts in the homepage, the plugin only works on the first post.

    To solve this you must change some lines on this file:

    /wp-truncate-content/class/wp-truncate-class.php

    Line 81

    $hide_content = "<div id=\"hide_content\" style=\"{$a['embedcss']}\">{$content}</div>";

    Change for:

    $hide_content = "<div class=\"hide_content\" style=\"{$a['embedcss']}\">{$content}</div>";

    Line 100

    $('#hide_content').readmore({

    Change for

    $('.hide_content').readmore({

    It’s all. Now all post can truncate the content correctly.

    Will be nice to update the plugin realease with this error fixed.

Viewing 1 replies (of 1 total)
  • The topic ‘Using Shortcode more than once on same page’ is closed to new replies.