WordPress.org

Ready to get started?Download WordPress

Forums

AJAX Hits Counter + Popular Posts Widget
[resolved] Feature request: Unique classes for each post (4 posts)

  1. chrishoward
    Member
    Posted 1 year ago #

    Hi

    Can you make it so each LI has a class that uniquely identifies it.

    With that I can then do styling like the old Engadget "most popular" widget. http://d.pr/i/uHav

    Thanks

    http://wordpress.org/extend/plugins/ajax-hits-counter/

  2. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    Hello.
    Add to <LI> Post Id or number one by one?

    Example 1:

    <li id="li_321">Post #321</li>
    <li id="li_213">Post #213</li>
    <li id="li_111">Post #111</li>

    Example 2:

    <li id="li_1">Post #321</li>
    <li id="li_2">Post #213</li>
    <li id="li_3">Post #111</li>
  3. kutsy
    Member
    Plugin Author

    Posted 11 months ago #

    Check v0.8.8 [2013-09-15]

    Added classes for LI elements: item-num-<NUMBER_IN_ORDER> and item-id-<POST_ID>

    http://wordpress.org/plugins/ajax-hits-counter/changelog/

  4. chrishoward
    Member
    Posted 11 months ago #

    Sorry, I totally missed your reply back then! Will check out update. Thanks heaps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic