Timeline for Is possible add class for last post of Custom Post Type?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 28, 2019 at 17:33 | answer | added | Trisha | timeline score: 1 | |
May 25, 2019 at 5:52 | comment | added | Jacob Peattie |
There's no reason this wouldn't work on a custom post type, unless you're not using post_class() in your template, or you're not using the main query.
|
|
May 24, 2019 at 21:48 | comment | added | Faye | You could try the accepted method here - stackoverflow.com/questions/9610985/… | |
May 24, 2019 at 20:40 | comment | added | nmr |
Do you use the post_class() function in the template file responsible for displaying the custom post type?
|
|
May 24, 2019 at 20:12 | history | edited | nmr | CC BY-SA 4.0 |
corrected typo, fixed code formating
|
May 24, 2019 at 19:05 | review | First posts | |||
May 24, 2019 at 22:29 | |||||
May 24, 2019 at 19:04 | history | asked | Laura P. Núñez | CC BY-SA 4.0 |