WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
Linking directly to person in staff list (3 posts)

  1. kelloggagency
    Member
    Posted 1 year ago #

    Is it possible to link directly to a specific person in the staff list?

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

  2. ckone
    Member
    Posted 1 year ago #

    I am unsure exactly what you mean... but are you asking link that appears within a particular post, let's say "this article was presented by Brian Smith" and click on his name to redirect to his staff page?

    How about working with template and anchor?

    For example:

    <a href="pageURL/staff-page/#Brian Smith">Brian Smith</a>

    and in your staff list template make

    <a name="[staff-name]"></a>[staff-name] [staff-bio] (just format your template but insert the anchor tags)

  3. Nick Ciske
    Member
    Posted 1 year ago #

    [staff-name] could easily be an invalid named anchor (e.g. James O'Reilly or John Dóe) so you should use [staff-name-slug] instead.


    [staff-name-formatted]

    FYI - IDs are the correct way to do this, name attributes are deprecated in XHTML and HTML5.

    http://derickrethans.nl/html-name-attribute-deprecated.html

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.