Ejemplo n.º 1
0
</h1>
				    </div>
			    <?php 
        }
        ?>

				<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('clearfix');
        ?>
 role="article">

					<?php 
        if (($cb_featured_image_style == 'off' || $cb_featured_image_style == 'standard') && cb_is_woocommerce() == NULL) {
            cb_featured_image_style($cb_featured_image_style, $post, 'page');
        }
        ?>

					<section class="cb-entry-content clearfix" itemprop="articleBody">
						<?php 
        the_content();
        ?>
			     	</section> <!-- end article section -->

					<footer class="article-footer">

                        <?php 
        wp_link_pages('before=<div class="cb-post-pagination clearfix">&after=</div>&next_or_number=number&pagelink=<span class="wp-link-pages-number">%</span>');
        the_tags('<p class="cb-tags"><span class="tags-title">' . __('Tags:', 'cubell') . '</span> ', '', '</p>');
Ejemplo n.º 2
0
 function cb_clean_search($cb_query)
 {
     if (!is_admin() && $cb_query->is_search == true) {
         if (class_exists('bbPress') && is_bbpress() == true) {
         } elseif (cb_is_woocommerce()) {
         } else {
             $cb_cpt_output = cb_get_custom_post_types();
             if (ot_get_option('cb_show_pages_search', 'off') != 'off') {
                 $cb_cpt_output[] = 'page';
             }
             $cb_query->set('post_type', $cb_cpt_output);
         }
     }
     return $cb_query;
 }