Зage navigation in categories
-
Hello. How to create page navigation in categories. Nothing helps. I tried the codes from the Internet and the plugin VP Navi
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
-
All pages give only 404 error
This is how I changed the wp-knowledgebase / template / taxonomy-kbe_taxonomy.php file
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly get_header( 'knowledgebase' ); // load the style and script wp_enqueue_style( 'kbe_theme_style' ); if ( KBE_SEARCH_SETTING == 1 ) { wp_enqueue_script( 'kbe_live_search' ); } // Classes For main content div if ( KBE_SIDEBAR_INNER == 0 ) { $kbe_content_class = 'class="kbe_content_full"'; } elseif ( KBE_SIDEBAR_INNER == 1 ) { $kbe_content_class = 'class="kbe_content_right"'; } elseif ( KBE_SIDEBAR_INNER == 2 ) { $kbe_content_class = 'class="kbe_content_left"'; } // Classes For sidebar div if ( KBE_SIDEBAR_INNER == 0 ) { $kbe_sidebar_class = 'kbe_aside_none'; } elseif ( KBE_SIDEBAR_INNER == 1 ) { $kbe_sidebar_class = 'kbe_aside_left'; } elseif ( KBE_SIDEBAR_INNER == 2 ) { $kbe_sidebar_class = 'kbe_aside_right'; } // Query for Category $kbe_cat_slug = get_queried_object()->slug; $kbe_cat_name = get_queried_object()->name; $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1; $kbe_tax_post_args = array( 'post_type' => KBE_POST_TYPE, 'posts_per_page' => 10, 'paged' => $paged, 'orderby' => 'menu_order', 'order' => 'ASC', 'tax_query' => array( array( 'taxonomy' => KBE_POST_TAXONOMY, 'field' => 'slug', 'terms' => $kbe_cat_slug ) ) ); $kbe_tax_post_qry = new WP_Query( $kbe_tax_post_args ); ?><div id="kbe_container"><?php // Breadcrumbs if ( KBE_BREADCRUMBS_SETTING == 1 ) { ?><div class="kbe_breadcrum"><?php kbe_breadcrumbs(); ?></div><?php } // Search field if ( KBE_SEARCH_SETTING == 1 ) { kbe_search_form(); } // Content ?><div id="kbe_content" <?php echo $kbe_content_class; ?>> <!--leftcol--> <div class="kbe_leftcol"> <!--<articles>--> <div class="kbe_articles"> <h2><strong><?php echo $kbe_cat_name; ?></strong></h2> <ul><?php if ( $kbe_tax_post_qry->have_posts() ) : while ( $kbe_tax_post_qry->have_posts() ) : $kbe_tax_post_qry->the_post(); ?><li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li><?php endwhile; endif; ?></ul> </div> </div> <!--/leftcol--> <?php wp_reset_postdata(); $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $kbe_tax_post_qry->max_num_pages ) ); ?> </div> <!--/content--> <!--aside--> <div class="kbe_aside <?php echo $kbe_sidebar_class; ?>"><?php if ( (KBE_SIDEBAR_INNER == 2) || (KBE_SIDEBAR_INNER == 1) ) { dynamic_sidebar( 'kbe_cat_widget' ); } ?></div> </div><?php get_footer( 'knowledgebase' );
Please help me
I’d love to help but I don’t understand your question. What are you trying to achieve?
I wondered if maybe you are asking how to add a side menu? There is a setting for that in the KB Settings.
Sorry. My English is bad.
See this page .
How to display on this page 10 posts.
how to create page navigation.
For example …/page/1, …/page/2, …/page/3-
This reply was modified 5 years, 5 months ago by
shohruhmirzo.
Can anybody help me?
-
This reply was modified 5 years, 5 months ago by
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Зage navigation in categories’ is closed to new replies.