Advertisement
WPBakery

Architectos: portfolio password

Aug 14th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Portfolio page
  4. */
  5. ?>
  6. <?php
  7. if ( post_password_required() ) {
  8.     require_once(TEMPLATEPATH . '/password_protected_page.php');
  9.     die();
  10. }
  11. ?>
  12. <?php
  13. $template_pid = $post->ID;
  14. $args = array(
  15.     'post_type' => 'wpb_portfolio',
  16.     'paged' => ( get_query_var('paged') > 0 ) ? get_query_var('paged') : get_query_var('page')
  17. );
  18.  
  19. query_posts( $args );
  20.  
  21. require_once(TEMPLATEPATH . '/archive-wpb_portfolio.php');
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement