[SOLVED] Author Name on Single.php
I'm having an issue with placing the author name in the right place on a single post page (single.php). I would like to have the author name between the post title and the tags field, but that doesn't work.
I'm trying to place the name has a h4 field like so: <h4><?php the_author(); ?></h4> It doesn't work before the_content() is called, but starts working immediately after the_content() is called. Am I missing something? |
you might want to put it in the sub Template 'postformat'
|
Does this not change the format for the excerpts on the list of posts? I would like to add the author to the actual post page.
|
It seems that there is a problem with retreiving the author meta data. I have a message into the developer and am waiting a response.
|
Any update yet?
|
He is working on a new release but that is all I know at this point.
|
hi there,
not able either to sucessfully use "the_author_posts_link()" in single.php before "the_content()" is called in the template... guess the same issue as mentionned by gantred... any news ??? this is quite embarrasing... cheers raf |
I've reported it. If you put it AFTER the_content() it will work.
|
Quote:
______________________________ The post title published by author on date the content of the post _____________________________ which is quite a common and logical display. thanks for having reported anyway... will be waiting for upgrade ;) Do you think it should work better if a physical template is used ?? (i'll give a try and let you know...) cheers raf |
Any progress on this? I have the same issue.
|
I haven't heard anything from the developer.
|
I made a separate main template for each author. So under Appearance>Montezuma Option>Main Templates I selected "add main template," I called it "Author's Name-Template," and I opted that it be a copy of the "single" template. Then I altered it so that right after the closing </h1> tag of the post title section I put in a line saying "<h3>Authors Name</h3>".
This means that each author always has to select a separate template -- but it does make it look good to the reader. This may be too hokey for you, but in case it works for someone I wanted to share. |
Yay! I've solved it!
Edit three lines in the file called parse_php.php, starting at line 28, as follows: Code:
$need_loop = array( 'the_content', 'the_author' ); Moreover, add !in_the_loop() constraint. And that's all. Enjoy! |
Excellent, thanks very much!
|
|
All times are GMT -6. The time now is 09:18 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.