• Resolved johnnycho

    (@johnnycho)


    Thanks so much for this outstanding plugin. I use it all the time.

    One thing that would be very helpful, which I haven’t seen in any of your documentation, code snippets, discussion threads, etc., is to simply add the slug as a class in the listing-item. For example, if there are two posts — one with the slug post-01 and the other post-02 — the plugin would output:

    <li class="listing-item post-01">...</li>
    <li class="listing-item post-02">...</li>

    This would allow different CSS styling (such as background-image) to be applied to each post in the listing.

    I tested it by simply adding 'post-' . $post->post_name to the $class array on Line 471 of display-posts-shortcode.php and it works. But obviously this will break as soon as I update the plugin.

    I hope you’ll consider adding this feature to your next version. Thanks again for the great work.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add slug as class for listing-item’ is closed to new replies.