DeTodoOnline
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [WP-Paginate] WP-Paginate returning always the same pageI’m having this same problem and the fix posted doesn’t work for me.
I’m new to WordPress and could really do with some help to get this going.
<?php get_header(); ?> <section> <?php query_posts(); the_post(); ?> <div class="date-padding"><time class="date" datetime="<?php the_time('Y-m-d'); ?>"> <?php the_date(); ?></time> </div> <?php wp_reset_query(); ?> <div class="video-class"> <figure class="videos-main"> <?php query_posts('posts_per_page=6&cat=-22'); if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="grid-1-2 video-class"> <a class="videohover" href="<?php the_permalink(); ?>"> <?php get_the_image( array( 'meta_key' => array( 'Thumbnail', 'thumbnail' ), 'size' => 'full' ) ); ?></a> <h2 class="video-title-label"><span class="title-video"> <?php if (function_exists('get_cat_icon_lite')) echo get_cat_icon_lite('class=icon-video-title') ;the_title(); ?></span></h2> <div class="para-video"><p><?php the_excerpt(); ?></p></div> </div> </article> <?php endwhile; endif; ?> </figure> </div> <!--Pagination--> <?php echo paginate_links( $args ) ?> <?php global $wp_query; $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' => $wp_query->max_num_pages ) ); ?> </section> <?php get_sidebar(); ?>
Do I need to set up a different page for this to work?
I’m using a random bit of for the pagination I found online. I’ve tried many. They all have the same result.
Also when I put the code inside the loop, every post gets the pagination displayed next to the title, very strange. It still doesn’t work though.
Really really appreciate any help on this please!
thanks
Forum: Themes and Templates
In reply to: Display Multiple Pages in One?Apologies, I have found a solution.
There really is a plugin for everything.
The one in question is called “Improved Include Page” and works wonderfully.
Thank you WordPress gods.
Viewing 2 replies - 1 through 2 (of 2 total)