• Hello everyone,

    Please, how can I put a link, that automatically show up under every posts.

    I just guess I might have to pop some PHP codes in the template.

    You assistance is appreciated.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • jack randall

    (@theotherlebowski)

    what do you want it to do/say?

    You can either:

    Add the HTML code to your template file(s). This may be needed in more than one place depending on how complex your sites theme is.

    Add a function to tack the HTML onto the back of any content. As a (not checked too well…) example:

    add_filter('the_content' , 'my_link_function' , 100);
    
    function my_link_function( $content ) {
        return $content.'<p><a href="https://site.com">My Link Here</a></p>';
    }
    jack randall

    (@theotherlebowski)

    if you add it to the theme’s template files make sure that you’re using a child theme!

    Thread Starter sundev

    (@sundev)

    Thanks for your kind replies.

    I’ve actually prepared a form in a special page where I want the link to direct whoever clicks “click Here To fill Our form”

    That should appear under every post, both old, new and yet to be posted.

    I am using a child theme of MesoCulumn theme

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I put link that automatically show under every posts.’ is closed to new replies.