Title: New link type
Last modified: September 21, 2021

---

# New link type

 *  Resolved [ante1974](https://wordpress.org/support/users/ante1974/)
 * (@ante1974)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/new-link-type/)
 * Is there any chance that a new link type can be created that will interact with
   Woo Commerce? For example, Authors List is being used to show post authors, but
   on my site post authors may also have products. Could a “product link” be created,
   that allows you to view all of an authors products where the products are tagged
   with the authors name?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14904520)
 * Hi [@ante1974](https://wordpress.org/support/users/ante1974/)
 * I’m not aware of WooCommerce having pages that list the products of a specific
   author, I might be wrong.
 * Is it part of WooCommerce or do you use some extension for that?
 * And can you send over an URL to one of those pages on your site that list products
   for a specific author only?
 *  Thread Starter [ante1974](https://wordpress.org/support/users/ante1974/)
 * (@ante1974)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14909672)
 * Hi [@wpkube](https://wordpress.org/support/users/wpkube/)
 * Yes you are right, WooCommerce doesn’t list products of a specific author, but
   what I have done is made each WordPress User and author, given them “authorship”
   of their products as well as tagging their products with their name. So really
   it is a link to a specific tag:
 * [http://www.yoursite.co.uk/tag/firstname-lastname/](http://www.yoursite.co.uk/tag/firstname-lastname/)
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14911446)
 * Hi [@ante1974](https://wordpress.org/support/users/ante1974/)
 * You could so something like this:
 * `[authors_list after_bio='<a href="{al:user_url}">View Products</a>']`
 * So it shows a link to the author’s URL. It’s set when you go to edit a user, 
   the “Website” field just above the “Biographical info”.
 * So for that URL you can set the URL to their products listing page.
 *  Thread Starter [ante1974](https://wordpress.org/support/users/ante1974/)
 * (@ante1974)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14913592)
 * Hi [@wpkube](https://wordpress.org/support/users/wpkube/)
 * True I could do that, but I think I might want to link out to authors own websites
   too for SEO.
 * I just checked this page in Codex: [https://codex.wordpress.org/Author_Templates](https://codex.wordpress.org/Author_Templates)
 * So it can be done by [http://www.yoursite.co.uk/tag/firstname-lastname/](http://www.yoursite.co.uk/tag/firstname-lastname/)–
   which looks like it is [http://www.yoursite.co.uk/tag/&lt](http://www.yoursite.co.uk/tag/&lt);?
   php echo $curauth->display_name; ?>/
 * To link direct to the author pages in WordPress speak it would be: [https://www.yoursite.co.uk/author/&lt](https://www.yoursite.co.uk/author/&lt);?
   php echo $curauth->display_name; ?>/ – but that only shows posts not products.
 * I guess all I am really asking for, if it is possible is to link to a tag of 
   the authors display name.
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14919366)
 * Display names are based on the first name and last name. It’s the same text you
   get as the author’s name in the list from our plugin. It’s definitely not in 
   the format `firstname-lastname`
 * You can use any of the available user meta you want. The example I sent over 
   uses the “Website” field value.
 * You could use the [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)
   plugin to add a new field for the users.
 * So you add a new text field with the ID `product_archive_url` and for the “Location”
   you set “User Form”. That field will then show when editing a user.
 * To output the value of that field in the authors list you would use:
 * `[authors_list after_bio='<a href="{al:product_archive_url}">View Products</a
   >']`
    -  This reply was modified 4 years, 7 months ago by [WPKube](https://wordpress.org/support/users/wpkube/).
 *  Thread Starter [ante1974](https://wordpress.org/support/users/ante1974/)
 * (@ante1974)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14923834)
 * [@wpkube](https://wordpress.org/support/users/wpkube/) ok thanks let me try that
   I have ACF installed.
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14934362)
 * Hi [@ante1974](https://wordpress.org/support/users/ante1974/)
 * You’re welcome. Did it work out?
 *  Thread Starter [ante1974](https://wordpress.org/support/users/ante1974/)
 * (@ante1974)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14947020)
 * HI [@wpkube](https://wordpress.org/support/users/wpkube/)
 * Actually I didn’t try it because the person requesting the work wanted a user
   journey change.
    -  This reply was modified 4 years, 7 months ago by [ante1974](https://wordpress.org/support/users/ante1974/).
 *  Thread Starter [ante1974](https://wordpress.org/support/users/ante1974/)
 * (@ante1974)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14969540)
 * [@wpkube](https://wordpress.org/support/users/wpkube/) actually I have one more
   question on this. I am using Authors List style 2, with a custom link on View
   Profile.
 * `[authors_list after_bio='<a href="{al:user_url}">View Profile</a>']`
 * The custom link on “view profile” is different from the “wrap around link” that
   links the entire author image. Is there a way to make the the “wrap around link”
   link the same as my “view profile” link?
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14970843)
 * Hi [@ante1974](https://wordpress.org/support/users/ante1974/)
 * There’s a parameter called `link_to` which can be used to change what the wrapper
   links to. One of the values is `meta` (user meta value) and then you use the 
   parameter `link_to_meta_key` to set the field key/id:
 * `[authors_list link_to="meta" link_to_meta_key="user_url" after_bio='<a href="{
   al:user_url}">View Profile</a>']`
 *  Thread Starter [ante1974](https://wordpress.org/support/users/ante1974/)
 * (@ante1974)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14971096)
 * Hi [@wpkube](https://wordpress.org/support/users/wpkube/) thanks for this, works
   perfectly. Didn’t see it on the attributes section in the plugin description.
    -  This reply was modified 4 years, 7 months ago by [ante1974](https://wordpress.org/support/users/ante1974/).
 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14979424)
 * You’re welcome, happy to hear it worked out.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘New link type’ is closed to new replies.

 * ![](https://ps.w.org/authors-list/assets/icon-256x256.png?rev=2062262)
 * [Authors List](https://wordpress.org/plugins/authors-list/)
 * [Support Threads](https://wordpress.org/support/plugin/authors-list/)
 * [Active Topics](https://wordpress.org/support/plugin/authors-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/authors-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/authors-list/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [WPKube](https://wordpress.org/support/users/wpkube/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/new-link-type/#post-14979424)
 * Status: resolved