current class is being added to final post in list
-
Hi, I’m using the widget to add a simple list of posts in a category and then styling the current link so it is highlighted. The list is embedded within a page where none of the links in the post link are the current page – so there should be no current class added. But the final post in the list is always getting the class added to it – no matter how many posts there are. I’m using the same idea on several pages – and they all have the final post highlighted, i.e. the class=current is being added to the final <li> element. This means I’m getting a link highlighted – even thought it’s not the current page.
I’m using the default template. Can anyone help?
WordPress 6.3.1 List Category posts version 0.89
Thanks,
Jim
The page I need help with: [log in to see the link]
- The topic ‘current class is being added to final post in list’ is closed to new replies.