Add Updated On Message

Community Forums Forums Design Tips and Tricks Add Updated On Message

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Scott Buehler 1 year, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11069

    Scott Buehler
    Participant
    Post count: 51

    I have a custom post type called ‘hosts’ that I want to add after the post content but before the author box that says:
    This Post Was Last Updated On:

    http://thecustomizewindows.com/2012/10/last-modified-date-wordpress-for-posts-plus-rel-tags-for-genesis/

    The code at the bottom of this page works, but it puts the content at the very top of the page (before the template).

    I want to add this code on single-hosts.php template page.

    Help?


    TygrScott on Social Media

    #11074

    Scott Buehler
    Participant
    Post count: 51

    http://techiknow.com/last-modified-post-date-and-time-in-genesis-child-theme/

    This is what I want, how do I format it with the hook for the functions.php or single-hosts.php pages?


    TygrScott on Social Media

    #11081

    Bill Murray
    Participant
    Post count: 575

    If you only want the code to display on the single post display of your hosts CPT, you should just be able to put the code in your last post in your single-hosts.php at the location where you want it. The code is just echo’ing a value, so you’ll have to surround it with HTML so you can style it appropriately.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #11196

    Scott Buehler
    Participant
    Post count: 51

    Bill I appreciate your reply, however, if I just put that code on the bottom of single-hosts.php at the bottom (before the genesis closing tag), it just prints it at the very top of the page outside of the theme.

    What I’m asking for is how to write the genesis hook code to include:

    genesis_after_post_content

    and the code from http://techiknow.com/last-modified-post-date-and-time-in-genesis-child-theme/

    As for styling, THAT I’m good at.


    TygrScott on Social Media

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

You must be logged in to reply to this topic.