Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thank you jkeegan2! Finally, after hours of cursing and at least a thousand times clearing the cache it is finally there!

    Thread Starter saftogvann

    (@saftogvann)

    OK, I’ll try to give a more detailed description:

    In my main menu that is organized as a horizontal navbar I use this code in my header template:
    <ul id="mainmenu">
    <li><a href="<?php echo get_settings('home'); ?>/">Hjem</a></li>
    <?php wp_list_pages('sort_column=menu_order&title_li=&depth=-1');
    ?>
    <!-- mainmenu level 2 begins -->
    <ul id="level2">
    <?php wp_list_authors('exclude_admin=0'); ?></ul>
    <!-- mainmenu level 2 ends -->
    </ul>

    This works well and the level2 list brings up all the four authors names linking to their profile pages that makes use of the author template. Here is a link to this spesific part of the site I’m working on (in Norwegian, though): https://www.saftogvann.com/sosionautene/?page_id=5

    This part is fine.

    But in the other sections of my site I want a list of all the authors that links to an archive page that display all posts by the selected author. Not the profile page. (see the second list in the sidebar here: https://www.saftogvann.com/sosionautene/ )

    As it is now, both lists (the one in the navbar and the one in the sidebar) links to the profile page. What I want is a tag to use in the sidebar that gets a list of all authors but links to a page that uses the archive template.

    Summarized:
    1. When clicking on a link in the authors list in the navbar, you should get a profile page displaying information on that author. (This I have acomplished)
    2. When clicking on a link in the authors list in the sidebar, you should get a page containing all posts by that author. Just like when you click on a category.

    Whas this easier to understand? Thanks a lot anyway.

    Thread Starter saftogvann

    (@saftogvann)

    Thanks a lot – as you quite easily detected: I’m no programmer.

    Works as intended now!

    Thread Starter saftogvann

    (@saftogvann)

    Thanks a lot, I seem to get the hang of it now.

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