Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.






<!-- In order to match the testmimonials involved later, first we need to store the ID of service/ product on the current page -->
<!-- get_the_ID concerns with this current page's ID -->
    $product_id = get_the_ID();

<section class="product-testimonials">
<!-- Now, consider only the Custom Post Type named 'tu-testimonials' -->
			$args = array(
				'post_type' => 'tu-testimonials',
				'posts_per_page' => -1
			$query = new WP_Query($args);

<!-- If 'tu-testimonials' contains any post -->
			if( $query -> have_posts()){
				<h3>Our Clients Say</h3>
				<div class="slider">
				while ($query -> have_posts()){
					$query -> the_post();
          <!-- And if 'tu-testimonials' post type has any ACF field set up -->
            <!-- Then consider an ACF field named 'mentioned_services' -->
						$testimonials = get_field('mentioned_services');
            <!-- If this ACF field 'mentioned_services' contains any post -->
						if ( $testimonials ){
							foreach ($testimonials as $id){
								if( $product_id === $id ){
                  <!-- Then output the post content if this testimonial 'post id' equals to the 'product id' on this current product page -->
        // Closing Testimonial Slider