pagination custom post type on CP page

I’ve found the problem. Since I’m on a single (custom) post page, WP redirects back to the root of the URL. I’ve found the solution here. The solution (copied from the post on SO) was adding this to the functions.php: add_filter(‘redirect_canonical’,’pif_disable_redirect_canonical’); function pif_disable_redirect_canonical($redirect_url) { if( is_singular()) { $redirect_url = false; } return $redirect_url; } I’ve … Read more

Reverse ordered pagination on home page

The default order of posts is date descending. To reverse it for home page you could hook into pre_get_posts and for is_home() query set order parameter to ASC. Note that that pages would still go from 1 ascending, they will just have posts on them in opposite order. I don’t think actually reversing order of … Read more

How to devide post into more than one page using ?

The function you’re looking for is wp_link_pages(). Default usage below: wp_link_pages( array( ‘before’ => ‘<p>’ . __(‘Pages:’), ‘after’ => ‘</p>’, ‘link_before’ => ”, ‘link_after’ => ”, ‘next_or_number’ => ‘number’, ‘nextpagelink’ => __(‘Next page’), ‘previouspagelink’ => __(‘Previous page’), ‘pagelink’ => ‘%’, ‘echo’ => 1 ) ) You can read the documentation here: http://codex.wordpress.org/Function_Reference/wp_link_pages

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)