[Resolved] Adding formats to CPT

Home Forums Support [Resolved] Adding formats to CPT

Home Forums Support Adding formats to CPT

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #623445
    JANEK

    Good evening,

    Just wondering if theres a way to add formats to custom post types? Would love a way to do this so I can use specific styling on my custom posts in conjunction with WP Show Posts. πŸ™‚

    #623643
    Leo
    Staff
    Customer Support

    Hi there,

    What kind of formats are you referring to?

    #623817
    JANEK

    Hey Leo,

    With GP premium it comes with the post formats option which allows you to assign a type to posts like link, video or aside etc. This then applies a class to that post in the front end.

    #623859
    Tom
    Lead Developer
    Lead Developer

    Hey Janek,

    This might help: https://codex.wordpress.org/Post_Formats#Adding_Post_Type_Support

    Let me know πŸ™‚

    #624457
    JANEK

    Thanks I’ll give this a crack. If I run into any trouble I’m sure you will hear from me. I have another issue I want to discuss, and will post that up in a moment.

    #624466
    JANEK

    Well that was relatively easy! One line of code and everything seems to work fine.

    Thanks for your help as always. πŸ™‚

    #624529
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.