WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
class parameter doesn't work with default plugin installation (2 posts)

  1. autobeef
    Member
    Posted 1 year ago #

    I noticed the "class" parameter used as described here has no effect on the resulting HTML code. In other words,

    [catlist class=long]

    ..has no effect, using the default plugin installation.

    I found that the plugin uses a default.php template installed under the themes/ folder (i.e. not the default.php template in the plugins/ folder). The problem is the default.php template lacks code to utilize the "class" parameter.

    I fixed this in the template by changing line 41 to:
    $lcp_display_output .= '<ul class="lcp_catlist ' . $this->params['class'] . '">';

    This appends any class you set as a parameter to the existing class. Hope this helps someone.

  2. Jeff
    Member
    Posted 1 year ago #

    Having same issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic