Templating Author.php
-
Good day guys!
I’m trying to add some stuff to the Author Template and I’m successful in doing what I’m trying to do. Please see the author pages on my website Sharecommons
I followed this article to add some custom fields to the PROFILE EDITING page so that contributors can add their social networking links. to their profile.
The only problem is that the latest author’s social network stuff appears on ALL author’s profile pages. I’m trying to set the coding so that things work properly. Paula’s social networking links appear on Paula’s profile. John’s social networking links appear on John’s profile only. This is the Author.php template: https://pastebin.ca/1924405
I believe, the problem is around 33-37 lines. I don’t understand this code much but I’m trying my best to work this out.To understand what I’m trying to do, please visit these links:
https://sharecommons.com/author/pangel/
https://sharecommons.com/author/shamrock/pangel’s bookmarks are showing up on shamrock’s profile. I have not provided links in shamrock’s profile yet but pangel’s bookmarks should appear only on her own profile page. Why are they appearing on everyone’s profile? I can’t understand that ..
Thanks for any help you guys can provide.
Regards.
- The topic ‘Templating Author.php’ is closed to new replies.