WordPress.org

Support

Support » How-To and Troubleshooting » add content on posts plugin

add content on posts plugin

Viewing 1 replies (of 1 total)
  • tormorten
    Member

    @tormorten

    You could do this by adding this to your themes functions.php:

    add_filter( 'the_content', 'add_link_to_posts' );
    
    function add_link_to_posts( $content )  {
    
    	if( get_post_type() === 'post' ) {
    		$content .= '<a href="http://example.com">Submit your story</a>';
    	}
    
    	return $content;
    
    }

Viewing 1 replies (of 1 total)
  • The topic ‘add content on posts plugin’ is closed to new replies.