Recent post hook

Community Forums Forums General Discussion Recent post hook

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cehwitham 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18657

    DavidF
    Participant
    Post count: 36

    Is there a recent post genesis hook? or should I use default php to show 1 recent posts?

    I’m trying to load 1 recent post onto a custom page but can’t find the hook.

    Thanks

    David


    #21245

    cehwitham
    Participant
    Post count: 396

    Hi David,

    The Genesis hooks would allow you to output your function in the right place but they themselves wouldn’t output a post. You’d need to write a function to display the required post and then use add_action to add your function to the right hook.

    It may be simpler for you to use something like the Display Posts Shortcode plugin. You can then just add the required shortcode to your page through the Editor.

    http://wordpress.org/extend/plugins/display-posts-shortcode/

    Let me know if that helps.

    Chris


    Twitter: cehwitham Web: cehwitham.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.