• Resolved Nyx1961

    (@nyx1961)


    I have an archive page for a custom post type. It displays posts in chronological order, each with a featured image. Is there any way to have the most recent post display more prominently like a featured post, so that the latest post is displayed bigger with a bigger image size, than the subsequent posts? I’ve found all kinds of support posts and articles speaking to displaying recent posts OR featured posts OR custom post type display but none that address displaying the latest post to look like a featured post on an archive page. I’d appreciate any help. Thank you.

    Note: the site I’m working on isn’t live because the person I’m helping doesn’t want it to go live until it’s complete. :\

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there,
    you can integrate the theme with the featured content option of the free plugin Jetpack. Here more infos: https://jetpack.com/support/featured-content/

    Cheers
    PanKogut

    • This reply was modified 6 years, 2 months ago by PanKogut.

    It’s a simple matter to target the first post with CSS and make it look different from the rest.

    Thread Starter Nyx1961

    (@nyx1961)

    Thank you both for getting back to me.

    PanKogut, I’ll check out JetPack. I don’t currently use it because I’ve heard it slows loading times down but it can’t hurt to check it out. : )

    Joy, could you please send me in the direction of a code snippet I can use? I’m not familiar enough with CSS or PHP to write code myself. Thanks. : )

    CSS is dependent on the HTML structure and attributes, so it would likely be different for each theme (but not radically different).
    It’s a matter of looking at the source of your page to see what HTML and classes are used and putting that into the CSS. But you have to say more than “first one bigger”. How big? What percent? Just the image? Title too? Are they currently displayed in columns? etc., etc. Without seeing what you have, it’s hard to know what CSS to make to change it.

    Thread Starter Nyx1961

    (@nyx1961)

    Thanks, Joy. : )

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Archive with featured post’ is closed to new replies.