• MW_

    (@mw_)


    I have the “TheStyle” template from ElegantThemes.com

    I would like to create a semi-static front page, where the recent post boxes are filled with selected/recent pages instead of posts.

    What is the hook that calls for recent posts in a template and is there an easy hack or workaround to have pages shown instead of posts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Since this is a commercial theme with its own functionalities and support system, I recommend you contact the theme developer for assistance as they are best placed to assist you.

    https://www.elegantthemes.com/forum/viewforum.php?f=66

    Thread Starter MW_

    (@mw_)

    zoonini, thanks, but unfortunately I get no help on that forum. My questions went unanswered for two weeks, and when crying out loud, I get a “it’s not considered best practices” as an answer.

    I really would like to understand what I’m asking – can pages be displayed as recent posts? – but it seems like a difficult question.

    Moderator bcworkz

    (@bcworkz)

    Somewhere, your theme queries the database for the latest posts. You would need to replicate this behavior, except query for pages instead of posts. This might be an easy hack once you find the right spot, but you would lose it anytime the theme is updated.

    The correct solution is to create a child theme that does for pages what your current theme does for posts.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Displaying pages as recent posts’ is closed to new replies.