peterfremlin / Disability-Debrief

0 stars 0 forks source link

Author page template #5

Closed peterfremlin closed 1 year ago

peterfremlin commented 1 year ago

A page template that will list the posts of the author underneath the page text.

(i.e. so that the author profile can be changed in the editor).

cathysarisky commented 1 year ago

Can do. Looks like the current author page? Does it pull the author's social links and other data from the author page, or will you set that all up in the editor?

peterfremlin commented 1 year ago

Like the tag page, set it all up in editor.

cathysarisky commented 1 year ago

OK. All set up. You'll need to set up a page (not post) with the exact same slug as the author in order for the content to be pulled in. (Otherwise, it defaults back to as it was.)

peterfremlin commented 1 year ago

Nice solution. I guess my only slight wonder is about what happens if someone goes to /peter rather than /author/peter? Any recommendation on a solution to remove that edge case?

cathysarisky commented 1 year ago

Good point. I can create an 'author' template that you can apply to the page, that pulls the same content as the /author/peter page does.

On Tue, Aug 29, 2023 at 11:39 AM peterfremlin @.***> wrote:

Nice solution. I guess my only slight wonder is about what happens if someone goes to /peter rather than /author/peter? Any recommendation on a solution to remove that edge case?

— Reply to this email directly, view it on GitHub https://github.com/peterfremlin/Disability-Debrief/issues/5#issuecomment-1697695775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKCXDVTGBPI5ERNPMPC7SWLXXYEJJANCNFSM6AAAAAA3C5GXPY . You are receiving this because you commented.Message ID: @.***>

cathysarisky commented 1 year ago

Have adjusted the author page to look for author-something instead of just something as a page slug. Have added a "author page" custom template that you can assign to these tag pages that'll automatically redirect the user to the correct page, in case they get there on accident.

cathysarisky commented 1 year ago

@peterfremlin , I believe this item is done. Please let me know if I missed something.