Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress: Homepage posts (listing) styling

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #252611
    vnvillar
    Participant

    Hey guys!

    I am currently working on a custom WordPress theme right now and I wanted to achieve a dynamic post styling where you can select how the post should look like on the homepage.

    See sample screenshot below of what I’m trying to achieve:

    https://cl.ly/223w2Q281n2R

    So in the WordPress admin’s Post editor, I can select how the post should look like.

    See screenshot:

    https://cl.ly/1t3b3k46022h

    I’ve been trying to look if there’s any plugin to do it but I am not sure where to start and how to do it. Hope you can help me guys?

    Looking forward to your response. Thanks in advance!

    Best,
    Val

    #252719
    vnvillar
    Participant

    Hello guys,

    Hope you can help me. Thanks! :)

    Best,
    Val

    #252720
    MMPL
    Participant
    #252721
    Ilan Firsov
    Participant

    One option is to use a [post format](https://codex.wordpress.org/Post_Format) then based on that change the classes/template loaded.
    Another would be something like [Advanced Custom Fields](http://www.advancedcustomfields.com/) and again, change classes/template.

    And if you just want to edit the single page style, you can use page templates mentioned above.

    #252722
    vnvillar
    Participant

    Hey @MMPL!

    Thank you for response and for sharing the article. I will look into this and hopefully it’ll solve the problem.

    I’m still open to receive more tutorials and code examples since I’m not that advance with coding stuff haha.

    Thanks for the help! :)

    Best,
    Val

    #252724
    vnvillar
    Participant

    Hi @ilanf

    Thanks for your response. I’m looking into showing the different post layouts when its viewed on the Homepage only. Using Post Formats, would there be a custom field on my post editor where I can select what type if layout I should use for a post? Like screenshot below:

    https://cl.ly/1t3b3k46022h

    Thanks for the help!

    #252743
    Ilan Firsov
    Participant

    After you enable post format support in your theme (`add_theme_support( ‘post-formats’ )`) you will see [this](http://i.imgur.com/JDjROqM.png) in the edit post screen. Not exactly like in the screenshot but close enough I guess…
    You can enable support for all formats or some of them, but unfortunately we can’t add custom post formats yet (maybe in the future?)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Other’ is closed to new topics and replies.