Jump to content

Recommended Posts

I just setup a blog with wordpress, and the the theme I like doesn't display the authors name. I might have multiple authors at some point, so it's important that people know who's who. I put the following line in to display the authors name plus the time it was posted, but it pushes the first line of my post out. I've attached screen shots to explain.

 

<div class="postmetadata">Posted by <?php the_author(', ') ?> | <?php the_time('F jS, Y') ?></div>

 

It looks terrible. Is there anything I can do to prevent that from happening? Thanks!

 

Gray

 

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/190399-annoying-problem/
Share on other sites

Ok, well I guess I'll see what I can do with the CSS. Here's the block of code for both the title and content section.

 

<div class="title">
					<div class="thetitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></div>
					<div class="under">stored in: <?php the_category(', ') ?></div>
					<div class="postmetadata" style="float:left;clear:both;">Posted by <?php the_author(', ') ?> | <?php the_time('F jS, Y') ?></div>


				</div>

			</div>
			<div class="entry">
				<?php the_content() ?>
				<div class="postbottom">
					<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'commentslink', 'Comments Off'); ?>
					<a href="http://stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="stumbleupon"></a>
					<a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="digg"></a>
					<a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="delicious"></a>
					<a href="http://google.com/bookmarks/mark?op=edit&bkmk=<?php the_permalink() ?>&title=<?php the_title(); ?>" class="google"></a>
				</div>
			</div>

Link to comment
https://forums.phpfreaks.com/topic/190399-annoying-problem/#findComment-1004450
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.