This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies.
This code snippet creates a shortcode with the HTML content. To call the shortcode you can call it on the WordPress editor by this [showhtmlcontent]
/** * * Shortcode to display out HTML content */ if ( ! function_exists( 'ns_shortcode_function' ) ) { function ns_shortcode_function() { ob_start(); ?> <div style="width: 0px; height: 0px; overflow: hidden" itemscope="" itemtype="http://data-vocabulary.org/Review-aggregate"> <span itemprop="itemreviewed">blabla</span> <span itemprop="description">Company rating</span> <span itemprop="summary">5 stars service</span> <span itemprop="description">5 stars service</span> <meta itemprop="worstRating" content="0"> <span itemprop="rating">5</span> <span itemprop="votes">37</span>; <span itemprop="bestRating"></span> </div> <?php return ob_get_clean(); } add_shortcode( 'showhtmlcontent', 'ns_shortcode_function' ); }