Making plugin output customizable
Shortcode with a custom output template: You could try the following shortcode demo: /** * The shortcode [history_timeline] with a custom output template. */ add_shortcode( ‘history_timeline’, function( $atts = array(), $content=”” ) { ob_start(); if ( ” == locate_template( ‘templates/timeline.php’, TRUE ) ) include( plugin_dir_path( __FILE__ ) . ‘templates/timeline.php’ ); $html = ob_get_clean(); return $html; … Read more