WordPress.org

Support

Support » How-To and Troubleshooting » Permalinks redirecting pagination

Permalinks redirecting pagination

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    Are you setting the $paged variable in your custom query? Eg:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	[...]
    	'paged' => $paged
    );
    query_posts($args);

    yes here are my query:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args = array(
    	'post_type' => 'attachment',
    	'posts_per_page' => 18,
    	'post_status' => 'any',
    	'post_parent' => $post->ID,
    	'exclude' => get_post_thumbnail_id($post->ID),
    	'orderby' => 'menu_order',
    	'paged' => $paged
    );
    $attachments = new WP_Query( $args );

    the funny thing is that with normal permalinks (id based) it works like a charm.

    esmi

    @esmi

    Forum Moderator

    Check with your hosts that mod_rewrite is running on your server.

    yes it is 🙁

    here are the link:

    http://www.compoundent.com/media/grammy-brunch

    if you can take a look and help me @esmi

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalinks redirecting pagination’ is closed to new replies.
Skip to toolbar