How to use shortcodes inside theme functions

Community Forums Forums Design Tips and Tricks How to use shortcodes inside theme functions

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Alessandra 7 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #76438

    Alessandra
    Participant
    Post count: 30

    Hi!

    I am using the following shortcodes with the simple hook plugin, Would someone help me out on how to create a function inside my functions.php instead?

    Posted on: [post_date], at: [post_time], by: [post_author_posts_link] [post_edit] <a class="back-top" href="#" title="back to top">Top</a>

    Thanks!

    #76451

    braddalton
    Participant
    Post count: 8852

    Try this http://my.studiopress.com/snippets/post-info/

    You may also need to add the post meta HTML to a different hook position http://my.studiopress.com/snippets/post-meta/


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #76588

    Alessandra
    Participant
    Post count: 30

    Thanks, Brad! it helped me a lot!

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

You must be logged in to reply to this topic.