Add code on every post

  • adispy

    #9890

    Hi

    I’m trying to add a code to every post and I followed this discussion but looks like action hooks are not working for some reason. Where can I manually put the code so it will appear at the end of every post in my blog ?

    Thanks

    Mod

    Kenneth John Odle

    #44825
    Quote:
    looks like action hooks are not working for some reason

    Can you be more specific about this? How are they not working?

    There’s code, and then there’s code. In a WordPress text widget, you can add HTML, CSS, and JavaScript, but not PHP. You’ll need a special plugin for PHP.

    adispy

    #44826

    Aaa no PHP. Sorry, my bad.

    Thanks anyway

    Mod

    Kenneth John Odle

    #44827

    If you search the WordPress plugin repository for “php widget” you’ll find a few that work great. You can then use a PHP widget in place of a normal text widget.

    adispy

    #44828

    Thank you. Already found the plugin (Add this) and does exactly what I want. It puts the code just after the posts, above my social sharing buttons and recommended articles. I wanted to go without a plugin, oh well…

    Cheers,

    Adrian

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

You must be logged in to reply to this topic.