WordPress.org

Ready to get started?Download WordPress

Forums

Show author name in Semiologic? (17 posts)

  1. JimG
    Member
    Posted 9 years ago #

    I'm setting up a weblog for staff at my workplace to share information (link - it'll be private when it's up and running), and I've been using Semiologic, which so far has been great.

    Just one question: is it possible to show the author's name under each post, e.g. "Permalink | Posted by Jim G | 2 comments"? This would really add to the usability for the different people who I hope will be posting and reading. I've had a look around in main.css and captions.php but it's all a bit beyond me.

    Any help would be greatly appreciated. Thanks,

    Jim G

  2. JimG
    Member
    Posted 9 years ago #

    Oops, just realised I posted this in 'Installation' rather than 'Themes and Templates'. Sorry about that. If a mod could move it that would be great.

  3. oriecat
    Member
    Posted 9 years ago #

    Yes, you would need to add <?php the_author() ?> into your Main Template (index.php) and possibly single.php if you are using that also, whereever you want that to show.

  4. oriecat
    Member
    Posted 9 years ago #


  5. oriecat
    Member
    Posted 9 years ago #

  6. JimG
    Member
    Posted 9 years ago #

    Thanks oriecat, but as far as I can see Semiologic doesn't work that way - index.php and single.php are mostly empty, and most of the structure seems to be generated from the Semiologic CMS plug-in (sem-theme.php). It's set up very differently from other themes I've used.

  7. oriecat
    Member
    Posted 9 years ago #

    Sorry about that! I guess I'll down to install that plugin and play, so I'll know what I'm talking about from now on. ;)

  8. Denis de Bernardy
    Member
    Posted 9 years ago #

    @Jim -- I'll be releasing a new version of the theme this week, that will be closer to the normal wp templating syntax. if you cannot wait till then, you'll want to add the relevant call in wp-content/plugins/sem-theme/sem-theme.php, function sem_display_posts();

  9. JimG
    Member
    Posted 9 years ago #

    Thanks Denis. I'll see if I can do that, otherwise I don't mind waiting a week :) Looking forward to the next version - keep up the good work ...

  10. philosophus
    Member
    Posted 9 years ago #

    I am more and more becoming a fan of the semiologic-theme and I was particularly pleased with the discovery that you can now show the name of the author.

    In sem-theme.php:

    # uncomment the following to display the author
    # . " by " . get_author_link()

    Unfortunately, I was not able do get it working. Whenever I uncomment this snippet of code I get the following error:

    Warning: Missing argument 2 for get_author_link() in /home/www/web115/html/FS-Philosophie/wp-includes/template-functions-author.php on line 125

    Warning: Missing argument 3 for get_author_link() in /home/www/web115/html/FS-Philosophie/wp-includes/template-functions-author.php on line 125

    I am trying this on a blog conceived for multiple authors.

  11. Denis de Bernardy
    Member
    Posted 9 years ago #

    woops, forgot to finish that part.

    it should probably be:

    get_the_author()

  12. philosophus
    Member
    Posted 9 years ago #

    Thank you! :-)
    That did the trick.

  13. jfowler
    Member
    Posted 8 years ago #

    Two questions--
    1. In which file does the get_the_author() go?

    2. Where in the file does it go?

  14. jfowler
    Member
    Posted 8 years ago #

    anyone?

  15. Denis de Bernardy
    Member
    Posted 8 years ago #

    wp-content/plugins/sem-theme/sem-theme.php

  16. jfowler
    Member
    Posted 8 years ago #

    Denis,

    Would an install of the newest version solve this?

    Also, will the new Pro package have the translator I noticed functioning on the demo version the other day?

  17. Denis de Bernardy
    Member
    Posted 8 years ago #

    not yet, but try the v.3, next week.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.