Forums

404 error permalinks (1 post)

  1. trace6217
    Member
    Posted 1 year ago #

    I used the plugin custom post types in addition to pagination plugin as well.

    I keep getting a 404 error when I click on page 2. I have searched online and the forums and have tried many possible fixes but I keep getting the same 404 error.

    I tried changing the permalinks - resave/refresh and it would work for maybe an hour, then 404 would come back. repeat the process...is there a way to fix this?

    http://franchisestudiosinc.com/web/

    here is the php code that I am used in my template page

    <?php
      $type = 'web';
      $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
      $args=array(
        'post_type' => $type,
        'post_status' => 'publish',
        'paged' => $paged,
        'posts_per_page' => 3,
        'caller_get_posts'=> 1
      );
      $temp = $wp_query;  // assign original query to temp variable for later use
      $wp_query = null;
      $wp_query = new WP_Query();
      $wp_query->query($args);
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic