Staff List Pagination

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11458
    dfellars
    Member

    The Staff Page on my site @ http://keithschool.birdinhandmedia.com/faculty/ is not paginating properly. When you click page 2, you get a 401 error. How can I fix this (or even better) how can I remove the pagination entirely?

    #11459
    dfellars
    Member
    This reply has been marked as private.
    #11475
    Raghavendra
    Moderator

    Looks like I do not have enough permissions to make changes to see if things get resolved. Can you pls provide admin rights pls temporarily?

    You can also try visiting the page Settings->Permalinks in WordPress Admin and see if that resolves the issue.

    #11482
    dfellars
    Member

    I updated the login to give you admin. If I change the permalinks to “default” it works, but that is not what I would like to use.

    #11496
    Raghavendra
    Moderator

    Ok I guess the issue is this line number 315 in the file framework/presentation/custom-post-types.php –

             'rewrite' => array( 'slug' => 'faculty' ),
    

    which lets the staff profiles to have the faculty as the URL prefix as in

    https://www.livemeshthemes.com/invent/faculty/judith-powell/

    instead of default staff prefix. WordPress is intercepting your URL and messing it up pagination leading to 404 error.

    My suggestion – can you change the page URL to something like http://keithschool.birdinhandmedia.com/our-faculty/ so that you can still use faculty prefix for individual faculty members?

    Another alternative is to change the line number 314 to

                'has_archive' => true,
    

    and let WordPress generate faculty page automatically for you. But then you lose some of the flexibilities of a page with custom content in it.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Invent Theme Support’ is closed to new topics and replies.