jetpack_portfolio

The Jetpack by WordPress.com jetpack portfolio shortcode.


Usage

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

Defined (1)

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

/modules/custom-post-types/portfolios.php  
  1. add_image_size( 'jetpack-portfolio-admin-thumb', 50, 50, true ); 
  2. add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) ); 
  3.  
  4. // registerjetpack_portfolioshortcode and portfolio shortcode (legacy) 
  5. add_shortcode( 'portfolio', array( $this, 'portfolio_shortcode' ) ); 
  6. add_shortcode( jetpack_portfolio, array( $this, 'portfolio_shortcode' ) ); 
  7.  
  8. // Adjust CPT archive and custom taxonomies to obey CPT reading setting 
  9. add_filter( 'pre_get_posts', array( $this, 'query_reading_setting' ) ); 
  10.  
  11. // If CPT was enabled programatically and no CPT items exist when user switches away, disable