assumed as comment line

Firstly, in the for there is missing a ‘$’. It should read: for ( $i = 1; $i <= $im; $i++ ). Secondly, in order to use the page link(s), you need to call the function wp_link_pages(). $im = stripslashes( get_option( ‘tm_alim’ ) ); for ( $i = 1; $i <= $im; $i++ ) echo … Read more

static page with multiple loops breaks post pagination

You aren’t setting the $paged variable, at least not in the code posted. Per the Codex, you need to do something like this: $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; … before trying to use the $paged variable. That is, it needs to come before this line: $wp_query->query(array(‘post_type’=>’post’,’post_status’=>’publish’,’showposts’>3,’paged’=>$paged)); Also, side note, what is this– php … Read more

Woocommerce products per page dropdown

This does not have anything to do with cookies, this is what happends: 1. Visitor goes to page 4/6 wich shows products 40-50 (10 per page) 2. When visitor changes products per page from 10 to 30, he will still be at page 4, when there are only 2 pages (60 products / 30 = … Read more

Pagination linking to first page

Perhaps you can take a look at this question and the answers and check if you really want to use query_posts() as it is not recommended while dealing with posts pagination. Why not use pre_get_posts action instead? Or you can try something like this: <?php $custom_query = new WP_Query(array( ‘post_status’ => ‘publish’, ‘post_type’ => ‘products’, … Read more

error code: 521