go41

Re: Author Page in Arthemia theme :: Reply by Joern

von Joern am 6. Mai. 2011 | Keine Kommentare

I think you added in your single file

<p>This post was written by <?php the_author(); ?></p>
Sorry, told you wrong, to get a link you must use in the same place:

<p>Written by:
<?php the_author_link(); ?></p>
clicking on this ‚author‘ link you come to a page ‚Archive by Author‘
This page is actually archive.php in your arthemia folder!

To create a custom file for authors you copy this archive.php to a file author.php

Now WP takes author.php to display the list of posts by this author.

Having a author.php you can verify that this file is in use just by adding or removing something
now take this part from the Codex:

Code:

<?php
    $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
    ?>

    <h2>About: <?php echo $curauth->nickname; ?></h2>
    <dl>
        <dt>Website</dt>
        <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
        <dt>Profile</dt>
        <dd><?php echo $curauth->user_description; ?></dd>
    </dl>

    <h2>Posts by <?php echo $curauth->nickname; ?>:</h2>

    <ul>

put it in your author.php just above this line: <div id="archive">
The details should of course be set in your dashboard for the users
to get Pretty Permalinks have a look at:

http://codex.wordpress.org/Using_Permalinks
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 3 weitere Ergebnisse dieses Threads:

Author Page in Arthemia theme

6. Mai. 2011 (von: sim_a1)

hi i just need help over some little issue. dont know why m not able to figure it out. www.techaban.com is my site and as you can see over there, there is no autor link. how do i go about…

Re: Author Page in Arthemia theme :: Reply by Joern

6. Mai. 2011 (von: Joern)

I'd like to refer you to the WordBress Codex site abour author templates:http://codex.wordpress.org/Author_Templatesas a base for an author template take your archive.php and copy it to a file called author.php.To show the author near a post you need &... Weiterlesen…

Re: Author Page in Arthemia theme :: Reply by sim_a1

6. Mai. 2011 (von: sim_a1)

Well i want page for multiple author. As you can see no link over there and i dont want to create a page. The link for author page should be like www.techaban.com/author and on that page we can add the…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: