creativecommons / vocabulary-theme

WordPress Theme implementation of the Vocabulary design system
GNU General Public License v2.0
3 stars 6 forks source link

[Bug] pagination links error behavior for Blog posts on `person-page` context for `Person` custom content type #56

Closed possumbilities closed 11 months ago

possumbilities commented 11 months ago

Description

When viewing a Person page which has a list of Posts at the bottom, where there are enough (more than 5) to cause pagination to appear, the links don't work. Instead they simple reload the current page.

When investigating this, there's a 301 that's fired when trying to navigate to the pages.

IF the page is viewed in "preview mode" then the pagination links work correctly, meaning there is something on the frontend of WordPress that is causing the redirect to fire.

Given that this page is a Custom Post Type singular page, and given that the items in question are a paginated loop, it is possible there's an inherent conflict with an expectation WordPress has regarding this combination of factors.

Reproduction

  1. Go to any Person's page with more than 5 authored posts
  2. Scroll down to the list, and click any pagination link beyond the first page
  3. See page reload (if investigating with browser console, you can see the 301 fire)

Expectation

The pagination links should load as they do across the rest of the site, loading the correct page of items within the loop they've been given.

Additional context

There is a possibility a fix can be found here:

Resolution