Support » Installing WordPress » Links by author

  • Hi All,

    thanks for this amazing wordpress comunity, its great to be part of it.

    my question:
    – in WP 2.0 admin interface, links can be created for each category, in the same form, each link can be assigned to any author. Now in my blog, i would like to display the relevant links on the author’s page, those attached to the author … how can i do that ?

    something like: <?php wp_get_links(author_id); ?>

    thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • hi cadweb, you can list all the blog authors in your template by using the following WP/PHP code:

    <?php wp_list_authors('show_fullname=1&optioncount=1&exclude_admin=0&hide_empty=1&feed=&feed_image='); ?>

    I’ve included all the params that are available to the API call, play around with them until you’re happy with the result!

    The links generated by this call will go through a page that will display all the posts by that author – if you want to customize this, then make sure you’ve got the author.php file in your current theme directory.

    Hi Vertino,

    i’m afraid my question has not been understood, perhaps i misphrased it, let me explain again.

    what i want to display are “links” (not posts) defined in WP admin tab ‘Links’. But because links are attached to categories and can be assigned to authors, my purpose is to display the li,ks assigned to an author.

    anyone has an idea of how this can be performed ?

    thanks a lot

    [don’t double post – it will be deleted]

    Hi cadweb,

    If I understand you correctly, you effectively want a ‘Link Category’ for each author?

    From my knowledge of the WP API, you would need to manually create a new Link Category for each Author, then call the wp_get_linksbyname(author_name) function, passing the author’s name to it (which would be the alias for the true link category name).

    Hope that helps some?

    Hi Vertino,

    i see what you mean, unfortunately this means that you only get the content of one category, in my blog all authors can post in every category …

    never mind, thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Links by author’ is closed to new replies.