WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
Can you have href on staff image or div tag to bring user to a full bio page? (17 posts)

  1. bretcj7
    Member
    Posted 1 year ago #

    Love the plugin and it does exactly what i need. I just need the image of the staff member or the div row if you click on the staff's name to go to a page specifically for the staff member, like a link to a full member bio page.

    Is this possible? I can modify the code if needed

    http://wordpress.org/extend/plugins/simple-staff-list/

  2. heystuart
    Member
    Posted 1 year ago #

    This plugin is great!

    I'd like to see this functionality as well. Maybe a short code for full bio url or maybe just the slug so we can do something like:

    <a href="http://www.site.com/staff-member/[staff-name-slug]" title="[staff-name]"><img class="staff-member-photo" src="[staff-photo-url]" alt="[staff-name]"></a>
    
    <a href="http://www.site.com/staff-member/[staff-name-slug]" title="[staff-name]">Read More</a>
  3. bretcj7
    Member
    Posted 1 year ago #

    Thats right, something like that would be great. I could hard-code the url for the href on the image but i rather not do that or every staff member that is added would have to be manually adjusted.

    Here is my current work in progress implemntation without the href on images.

    http://madeupbylindsay.com/new/headliner-djs/

  4. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Hey guys! Glad you like my plugin! It's awesome to see how it's being used.

    That being said, the ability to view a single staff member will probably make it into the next version of the plugin. I just haven't written it yet.

    But it shouldn't be too difficult to implement. If you give me a couple weeks I think I can have a working version of this.

    Again, thanks for using Simple Staff List!

  5. heystuart
    Member
    Posted 1 year ago #

    Would you create shortcodes for the staffs name slug?

    Do you have a shortcode already for the excerpt?

    Thanks for your fast response times!

  6. heystuart
    Member
    Posted 1 year ago #

    Awesome, great work Brett! Looking forward to your update.

  7. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    @heystuart The latest update adds the [staff-name-slug]

  8. bretcj7
    Member
    Posted 1 year ago #

    @Brett - sounds good man, let me grab the latest update and give it a try!

  9. bretcj7
    Member
    Posted 1 year ago #

    Can you give me an example of how you are using this? I got the newest version but must be doing something wrong. It doesn't seem to be re-writing the name-slug value.

  10. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    You should just be able to use the [staff-name-slug] template tag to pull in that value.

    Here's how I'm using it on my test site:

    [staff_loop]
    	<div rel="show-staff" class="[staff-name-slug]"><img class="staff-member-photo" src="[staff-photo-url]" alt="[staff-name] : [staff-position]"><br />
                    <span class="vis-staff-name">[staff-name]</span>
            </div>
    	<div class="staff-member-info-wrap" id="[staff-name-slug]">
    		[staff-name-formatted]
    		[staff-position-formatted]
    		[staff-bio-formatted]
    		[staff-email-link]
    	</div>
    [/staff_loop]
  11. Julie Kuehl
    Member
    Posted 1 year ago #

    heystuart asked: "Do you have a shortcode already for the excerpt?"

    I'd like to request that too. I've put in manual excerpts and would love to just drop a shortcode for the excerpt into the template. It would be awesome if a formatted version also included the "Read more..." functionality that went to their full staff page.

  12. heystuart
    Member
    Posted 1 year ago #

    Great work Brett, thank you for the update! Looking forward to testing it out.

  13. alex94040
    Member
    Posted 1 year ago #

    Very much looking forward to this... It's a blocker for my deployment.

  14. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Hey alex,
    You should be able to generate a link to the single staff page using:
    <a href="http://www.your-domain.com/staff-members/[staff-name-slug]">[staff-name]</a> inside the Staff Loop template.

  15. alex94040
    Member
    Posted 1 year ago #

    Thank you!

  16. samratkhan
    Member
    Posted 8 months ago #

    Hi Every One,
    I just put the code
    <a href="http://www.your-domain.com/staff-members/[staff-name-slug]">[staff-name]</a>

    But page doesn't found. should i create page for each member? anyone can help me

  17. AJ
    Member
    Posted 6 months ago #

    @samratkhan

    did u remove "your-domain.com" and put in ur own website?

    Create one staff member and it should come up instead of [staff-name-slug]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.