WordPress.org

Ready to get started?Download WordPress

Forums

WordPress.com Popular Posts
Boo for switching wppp_list to a class (2 posts)

  1. Greg Rickaby
    Member
    Posted 3 years ago #

    wppp.php line 209 went from id="wppp_list" to class='wppp_list'

    and broke my jQuery code (which requires an ID) on http://gregrickaby.com

    Is there a way to switch it back? I tried list_tag without success.

    <?php WPPP_show_popular_posts( "list_tag=wppp_list&title=&number=5&days=7&format=<a href='%post_permalink%' title='%post_title_attribute%'>%post_title%</a><span class='trending-bar'><span class='trending-count'>%post_views%</span></span>" );?>

    (in the mean time, I hacked wppp.php and added the ID back)

  2. frasten
    Member
    Plugin Author

    Posted 3 years ago #

    Hi, the switch from ID to class was introduced to allow multiple widgets at the same time (you can't have multiple equal IDs on the same page).
    However, looking at the source of your page, I think that using #trending-posts as ID, it should work the same.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic