Create fake paged author pages when there are no posts
-
I have created a profile page for all users in our database with author.php, see an example on
https://internationaldownhillfederation.org/member/berry-plasman/
I am now developing a new website where I’m using query vars to create ‘fake’ sub-pages, such as
https://internationaldownhillfederation.org/member/berry-plasman/race-attendance/
(which races he/she attended)https://internationaldownhillfederation.org/member/berry-plasman/written/
which posts he/she wrote (what’s normally shown on an author page)https://internationaldownhillfederation.org/member/berry-plasman/mentioned/
to show in which posts he/she got mentioned
Note: links are not working on live site (except first one).
The last one is the one which is giving me issues. I used ACF to be able to tag users in a normal post. On /mentioned/ I query the posts in which he/she got mentioned. That is not a problem.
The problem lies in the fact that I need to paginate these ‘mentioned’ posts BUT since 99% of the users have not written any posts, a paged author page returns a 404 because there are no posts for that user and thus no page 2.
- The topic ‘Create fake paged author pages when there are no posts’ is closed to new replies.