<?php echo CFS()->form(
array(
'post_id' => false,
'post_type' => 'company',
'post_title' => 'The Title',
'post_content' => false,
'field_groups' => array('152'),
'confirmation_url' => '/successful', // redirect URL
'submit_label' => 'Submit',
));
?>
if (is_page('150')) {
wp_enqueue_script( 'inputmaskrt', get_template_directory_uri() . '/js/inputmaskrt.js', false, null, true );
}
<div class="container">
<?php
$wp_query = new WP_Query();
$wp_query->query('showposts=2&post_type=event'.'&paged='.$paged); ?>
<?php if($wp_query->have_posts()) : ?>
<div class="row">
<?php $i = 0; ?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<?php if($i == 2) : ?>
</div>
<div class="row">
<?php $i = 0; ?>
<?php endif; ?>
<div class="col-md-6"><?php the_title(); ?></div>
<?php $i++; ?>
<?php endwhile; ?>
</div>
<?php endif; wp_reset_query(); ?>
</div>
<?php single_tag_title(); ?>