• Resolved Manu-PB

    (@manu-pb)


    I would like to add – without any plugin – social links at the bottom of a post (before comments).
    What is the hook I should use in (child) functions.php ?
    By the way, is there somewhere a list of available hooks ?
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • There isn’t a list of available hooks (at the moment), you have to find them through the code.
    But what do you want to achieve? You can easily print social links at the bottom of a post but.. to do what, I mean, they don’t allow you to share the content through social networks..

    Thread Starter Manu-PB

    (@manu-pb)

    I just need a hook to place “something” at the end on “the_content”, before any other stuff (comments, …)
    Thanks

    It depends where you want to place it, that’s why I told you to look through the code, after the content an before comments could be:
    __after_content (before the article tag end, and to place it before author metas you have to chose a priority < 10)
    or
    __after_article (inside the “have_posts()” loop)
    or
    __after_loop (again priority < 10 to put it before comments an navigation)

    You’re welcome.

    Thread Starter Manu-PB

    (@manu-pb)

    Many thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create social links after post / page content’ is closed to new replies.