Custom shortcode – random.php
<?php /** * Parses the passed attributes. */ $attributes = (array) cptui_shortcode_atts( $attributes ); $custom_query = new WP_Query( cptui_filter_query( $attributes ) ); ?> <div class="cptui-shortcode-random cptui-random-<?php echo esc_attr( $attributes[‘cptui_shortcode_id’] ); ?>"> <?php if ( $attributes[‘title’] ) { ?> <h2><?php echo…