Shortcode main function

parent 752539d8
......@@ -68,4 +68,25 @@ function turismomal_get_testimony() {
} // end if file exist and readable
}
// SHORTCODE
//
add_shortcode('muestra_testimonio', 'turismomal_testimony_shortcode');
add_shortcode('muestra_imagen', 'turismomal_image_shortcode');
function turismomal_image_shortcode($atts) {
$photo = turismomal_get_photoset_photo();
echo $photo;
}
function turismomal_testimony_shortcode($atts) {
// global $parameters;
// extract( shortcode_atts( $parameters, $atts ) );
$testimony = turismomal_get_testimony();
echo $testimony;
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment