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/

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';
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.