Stuck with what MUST be simple code:

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fgatlin
Forum Newbie
Posts: 2
Joined: Mon Apr 04, 2011 2:00 am

Stuck with what MUST be simple code:

Post by fgatlin »

Hello All,
I have a problem I cannot seem to solve. I have been at this code all day, and now I am stuck.

I have 3 lines of code:

Code: Select all


<?php wp_register();?>
<?php wp_loginout();?>
<?php wp_meta(); ?>
They print out reading top to bottom, but I would like to have them read side by side. Obviously, this is a Wordpress code. I am creating a Meta menu without using the widget placement, as I want to display it elsewhere on the page.

Thanks.
User avatar
deejay
Forum Contributor
Posts: 201
Joined: Wed Jan 22, 2003 3:33 am
Location: Cornwall

Re: Stuck with what MUST be simple code:

Post by deejay »

Hi

Sorry, I'm not sure if I understand the question properly. Is it the out put to your webpage your trying to get these functions to read side to side. If so could we have a look at a link or a screen shot for what you have so far.

Thanks
fgatlin
Forum Newbie
Posts: 2
Joined: Mon Apr 04, 2011 2:00 am

Re: Stuck with what MUST be simple code:

Post by fgatlin »

Thank you for your reply.
Yes, I am trying to have it read side by side instead of in a list. Here is a screen shot...
The Site Admin and Logout are what I would like to display side by side.
Image
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Stuck with what MUST be simple code:

Post by greyhoundcode »

Not so much a PHP or even a WordPress coding issue but a CSS one.

You could wrap things up in an unordered list and set display: inline or you could use some other technique, like wrapping each element in a div and floating them. Take a look at this for some ideas.
Post Reply