Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cwf_enquiry_table_html()
- {
- $args = array(
- 'post_type' => 'form-enquiry'
- );
- $form_enquiries = new WP_Query($args);
- if($form_enquiries->have_posts())
- {
- while($form_enquiries->have_posts())
- {
- echo '<p>' . get_the_title() . '</p>';
- }
- }
- // wp_reset_query();
- }
- add_shortcode('enquiry_table', 'cwf_enquiry_table_html');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement