Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function page_output_vc_shortcode() {
- $pagecontent = '';
- $arg = array('page_id'=>'');
- $the_query = new WP_Query($arg);
- while ($the_query->have_posts()) : $the_query->the_post();
- $title = the_title();
- $pagecontent = '<h2 class="widgettitle">'.$title.'</h2>';
- $pagecontent .= the_content();
- endwhile;
- return $pagecontent;
- }
- add_shortcode('my_vc_page_output', 'page_output_vc_shortcode');
Add Comment
Please, Sign In to add comment