• Yes, like the title says. The dates does not get neither a class (using date_class=) or a tag (using date_tag=) when I’m using my own template. I’m just trying out with the template default that is included so it sould not be that.
    But thumbnails is working can have a custom class set (using thunbnail_class=).
    Is is something special going on with dates? I’ve checked the CatListDisplayer.php trying to figure out why this is happening only to dates.. but no luck yet.
    Happy for any suggestions.

    http://ww.wp.xz.cn/plugins/list-category-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Fernando Briano

    (@fernandobt)

    I see what you mean. Since you’re using the template, you should manually add the class. Something like:

    $lcp_display_output .= ' <div class="lcp-date">' . $this->get_date($single) . '</div>';

    I think class/tag parameters should probably go away when using templates, since they can create confusion for advanced users who use the templates.

    Just fixed a bunch of stuff right now to release a new version, but this is something I’ll come back to in the near future to figure out the best way around it.

    Thanks for reporting this!

    Thread Starter murklan

    (@murklan)

    Yes, thanx. I did something similar

    $lcp_display_output .= "<span class='paneldate'>";
      $lcp_display_output .= ' ' . $this->get_date($single);
      $lcp_display_output .= "</span>";

    Hope you find someway around it.

    But I also found another thing. Using LCP in a nested shortcode. I’m using the Foundation framework (by Zurb) and when nesting the LCP in a second shortcode it won’t work. Like this:

    [section_group type="accordion" ] [section title="Education"]
    
    [section_group type="accordion" ] [section title="Educational models"]
    [catlist id=49 orderby=date date=yes thumbnail=yes thumbnail_size=tinylistImage thumbnail_class=tinylist]
    [/section] [/section_group]
    
    [/section] [/section_group]

    But I guess it has something to do with wordpress itself and I’ll try to sort it out.

    ps. thank you for a great plugin btw.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Class for date not working when using own template?’ is closed to new replies.