default userpic

MT 4.21 - Authors Tag

Vote 0 Votes

I am using Movable Type Version: 4.21

I am trying to fetch the Author details based on display name specified as a condition.




The above code support to display only the Author name of the Authors Display name is 'Mathi'. But it displays all the Users in a blog.
How can I get this particular author details by having only display name.

6 Replies

| Add a Reply
  • code:

     <mt:Authors display_name="Mathi">
    <mt:authorname>
    </mt:Authors>

  • The above code should work fine..
    Check this code:


    <mt:Authors username="username">
    <$mt:AuthorDisplayName$>
    </mt:Authors>

  • hi sunil,
    Thanks for the details. i have only the display name. i needs to fetch the author details from the display name of particular author. do you see any other options here to get the details?

  • In which template you are using the above code?

  • I would be curious to hear where are you trying to obtain that result. On what template type.

    The coding you've provided:

    <mt:Authors display_name="Mathi">

    <mt:authorname>

    </mt:Authors>

    Should work just fine!

    You may also like to try:

    <mt:Authors id="999">

    <mt:authorname>

    </mt:Authors>

    Where "999" is the user ID for "Mathi"...

  • i have tried as you said. but it does not work :-(

    options 'id', 'display_name' and 'username' both doesnot work in 4.21 version. is something not defined in 4.21 version?

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1195 3842

Last Topic: Comment form customization by anisa on Feb 8, 2010

60 184

Last Topic: Dynamic Publishing - Blank Screen by Sivaram M on Dec 15, 2009

955 2987

Last Topic: MT5 - Cookie Problems by Dave Cross on Feb 9, 2010

68 213

Last Topic: How to add Custom Fields by gregoryttp on Feb 5, 2010

19 67

Last Topic: Custom main index page by Richard on Feb 7, 2010

42 169

Last Topic: I want to write my own wordpress plugin by Xarzu on Jan 31, 2010

11 21

Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

91 326

Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

52 178

Last Topic: Assets - No options by Chelle on Feb 5, 2010

code.sixapart.com

128 444

Last Topic: ActionStream with Movable Type 5.01 by Parneix on Jan 24, 2010

154 468

Last Topic: URGENT! Help needed w/ Virus by PhilContrino on Feb 1, 2010