Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Marketpress Category
- */
- ?>
- <?php get_header(); ?>
- <div id="mid">
- <div id="content" class="grid_8">
- <?php
- if( has_term( 'Members Only', 'product_category' ) ) {
- $url = $_SERVER[REQUEST_URI];
- if (strpos($url, "members-only")) {
- if ( !is_user_logged_in() ) {
- header("Location:
- http://essentialsboutique.thinkbigwebsites.com/vip-area");
- die();
- }
- } elseif (!strpos($url, "category")) {
- if ( !is_user_logged_in() ) {
- header("Location: http://essentialsboutique.thinkbigwebsites.com/vip-area");
- die();
- }
- }
- }
- ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <div class="entry">
- <h2><?php single_cat_title('Product Category: '); ?></h2>
- <div class="entry single-category">
- <?php mp_list_products(); ?>
- <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
- </div>
- </div>
- </div>
- <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement