• Hi,

    I’m really struggling to Google my way out of this issue. I’ve set-up custom post-types, and I’ve managed to include those custom types in the index page. But now I really need a way of styling those entries differently to the regular posts. Does anyone know how I can do this? It’s not just styling, but also, replacing/adding/removing certain code, as the custom types operate/look differently to regular posts.

    Any help would be HUGELY appreciated!

    [No bumping. If it’s that urgent, consider hiring someone.]

Viewing 1 replies (of 1 total)
  • Thread Starter loulantos

    (@loulantos)

    As is often the case when I’ve posted here, I managed to find my own solution. Even just a shot in the dark would be nice, but my pleas for help are always just met with silence.

    Anyway, for anyone out there who finds themselves in a similar bind, I managed to solve the issue using IF/ELSEIF statements, for instance:

    if ( 'book' == get_post_type()

    https://codex.www.ads-software.com/Conditional_Tags#A_Post_Type

Viewing 1 replies (of 1 total)
  • The topic ‘Individual Styling/Coding for Custom Post Types on Index’ is closed to new replies.