cf7_post

The Contact Form 7 - Dynamic Text Extension cf7 post shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[cf7_post]'); 
  1. // variable usage 
  2. $result = do_shortcode('[cf7_post]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/contact-form-7-dynamic-text-extension.php  
  1. if( isset( $_POST[$key] ) ) { 
  2. $val = $_POST[$key]; 
  3. return $val; 
  4. add_shortcode('CF7_POST', 'cf7_post'); 
  5.  
  6. /** Insert a $post (Blog Post) Variable */ 
  7. function cf7_get_post_var($atts) { 
  8. extract(shortcode_atts(array( 
  9. 'key' => 'post_title',