Support » Plugin: Simple Staff List » Linking staff member bio to staff member info

  • Resolved richarddwrds

    (@richarddwrds)


    Before the most recent update I was able to link the staff member bio to the staff member info. I placed Teacher page in the phone number section. This was obviously a work-around but it no longer works.
    Each staff member has a significant amount of information that needs to display on its own page. How can I create a simple link that appears below the staff image that will navigate to the staffs own page?

    • This topic was modified 2 months, 3 weeks ago by richarddwrds.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Brett Shumaker

    (@brettshumaker)

    Hi richarddwrds –

    I see you’ve marked this as resolved, did you get this sorted out? I noticed that your faculty page has the images of the teachers linking out to their individual pages.

    As to why your workaround for placing a link in the telephone field stopped working, this latest update included updates to how data is sanitized and escaped (more details on what this is: https://developer.wordpress.org/themes/theme-security/data-sanitization-escaping/). So now, any HTML placed inside what should be an attribute, will be properly escaped and will no longer work.

    You’re able to add any HTML (that would normally be allowed in a post) to the staff loop template. So you could add something like this to make a link in the template:

    
    <a href="/staff-members/[staff-name-slug]">View Profile</a>
    

    Let me know if you have any questions!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.