Custom classes (or WP Query) for reliable column layout
-
Hi there,
Realizing a column layout with li items is tricky, I’d therefore like to use my regular layout using “one-half” / “first” classes. I’m wondering how to best achieve this with WPP. Is there a way to add custom classes so that I can assign “first” to the corresponding item?
The ideal solution would be to be able to use WPP in a regular WP query. Then I could use a counter to assign the necessary CSS classes. This is currently not possible without adding the view count as custom field value to posts, right?
BTW: I found this which looks promising: https://philkurth.com.au/articles/wordpress-popular-posts-plugin-raw-data-array/. Are you planning any major changes to WPP that could break this hack?
Cheers,
Thomas
- The topic ‘Custom classes (or WP Query) for reliable column layout’ is closed to new replies.