How to add different classes to each related post
-
Hello,
Great plugin it works perfectly.
I am currently displaying 6 related posts at the bottom of each article:
Post 1 | Post 2 | Post 3
Post 4 | Post 5 | Post 6I would like to the plugin to completely fill the container they are in (its about 780 pixels wide.)
Currently I have set each list item/thumbnail to be 240 pixels wide with 10px of margin either side = 10 + 240 + 10 + 10 + 240 + 10 + 10 + 240 + 10 = 780 pixels and this may have to do. I would like to apply margin to only the middle post on each line so the left and right list items/images are flush against the container edge, yet I cannot target these 2nd and 5th posts to do this.
Any ideas?
Regards,
James
https://www.ads-software.com/plugins/wordpress-23-related-posts-plugin/
- The topic ‘How to add different classes to each related post’ is closed to new replies.