• Hi, I have an old template, which has a custom-postype. I cant track in which WordPress version the pagination broke.

    In detail the source of archive-works.php is here :
    https://paste2.org/7gNGOpep

    btw my .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    in control panel I have this option :
    https://imagizer.imageshack.com/img921/4880/GZ5hxf.png

    when Im at domain.com, the pagination appears as usual
    https://imagizer.imageshack.com/img921/8724/y2XB9E.png

    when click a page (ex 2), redirected again to domain.com and not to page/2

    as I debug it, realize that this line set to variable an empty string ”
    $pk_paged = (get_query_var($pk_check_paged) ? get_query_var($pk_check_paged) : 1);

    any help appreciate

  • The topic ‘pagination for custom-type broke’ is closed to new replies.