Jump to content

[SOLVED] Need help with this small code


davidspan

Recommended Posts

I </3 wordpress. I had to setup a blog for my company and they wanted to use the K2 theme and mod almost everything. It took forever. Learned a lot though. However, not what could help you ATM.

 

Have you tried posting in the wp specific forums? They would probably be more equipped to help you.

http://wordpress.org/support/

Link to comment
Share on other sites

Try this

<?php
if ((the_author_ID())= '4')
       echo 'boo';
else
echo 'not boo';
?>

 

or

 

Try this

<?php
if (the_author_ID()= '4')
       echo 'boo';
else
echo 'not boo';
?>

 

or

 

 

Try this

 

<?php
$author = the_author_ID();
if ($author = '4')
       echo 'boo';
else
echo 'not boo';
?>

Link to comment
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.