Default pagination in Home/Front page
try this for get_query_var <?php $paged = get_query_var( ‘paged’, 1 ); ?> For more information check this url https://codex.wordpress.org/Function_Reference/get_query_var
try this for get_query_var <?php $paged = get_query_var( ‘paged’, 1 ); ?> For more information check this url https://codex.wordpress.org/Function_Reference/get_query_var
thanks Jan – it was the ‘more fields’ plugin and the temp plugin fix is here; http://wordpress.org/support/topic/plugin-more-fields-media-library-only-shows-5-images-at-a-time-and-not-10?replies=10
I believe you’re using 2 custom functions one of them is emm_paginate_loop() you’re showing. But i saw that settings for that custom pagination is on function emm_paginate() and specifically “gap”: ‘gap’ – Default is 3 (int). The minimum number of pages before a gap is replaced with ellipses (…). But that only sets a minimum … Read more
Change your query_posts call to include global $query_string variable. Your query_posts should look like following: <?php global $query_string; query_posts( $query_string . ‘cat=”.$cat ); ?>
“The problem I have it that on the first 8 pages only 1 article is displayed.” That would be due to this line of code: if ( $wp_query->get( ‘paged’) < 8 ) { $wp_query->set( ‘posts_per_page’, 1); } See here for more info: codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters EDIT: Try adding brackets as mentioned by @kaiser… Here’s your original code … Read more
If this is a new WordPress install, it is likely that you don’t actually have enough posts to require pagination, and thus the pagination links aren’t appearing. Quick test: ensure you have at least two posts, then go to Dashboard -> Settings -> Reading, and change the “Posts Per Page” setting to 1. Do you … Read more
I have never seen this issue. without seeing the code that your developer wrote there isn’t much to say here. Did he use a custom query to get the information from the database? Did he rewind the posts? Does he have the code for pagination in the template twice? which actually could be the case … Read more
You don’t have a code issue, just CSS. In your default.css, just at the end, add this: #menu-under-header .navbar-inner ul{clear:both !important; width:1000px;} .menu-header-container{clear:both !important;} #social-networking{clear:both !important;} and that’s it. You may want to add a position for social networking. IN that case, replace the last line with this: #social-networking{clear:both !important; position:relative; left:760px;} EDIT: SEE THE … Read more
It’s not clear why you’re using query_posts or get_posts at all, WordPress does the main query for you before loading the template. If you simply want to change posts_per_page to something other than your site-wide settings, use pre_get_posts.
I think that page has the pagination links wrong. http://codex.wordpress.org/Function_Reference/previous_posts_link previous_posts_link( $label , $max_pages ); Try just taking the $max_pages out, like: <?php previous_posts_link(‘« Newer’) ?> <?php next_posts_link(‘Older »’) ?>