WordPress.org

Ready to get started?Download WordPress

Forums

Create current class in Post list based on current post (1 post)

  1. katart17
    Member
    Posted 3 years ago #

    I was looking for a way to display a list of Post titles and have them link to a single post and still display the Post titles. That part was simple. The difficult part (for me) was figuring out how to add a "current" class to the Post title in the list based on the Current Post displayed.

    I figured it out and I posted the result in my own Forum post: http://wordpress.org/support/topic/highlight-item-in-list-of-posts-based-on-current-post

    I hope it helps

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by katart17
  • This topic is not a support question
  • WordPress version: 3.0.1