Reply
   
 Quick question - Wordpress 2.5 
 
 
  #1 (permalink)  
Old 05-08-2008, 01:09 AM
Regular

Group: Regulars
Location: Perth


Quick question - Wordpress 2.5

Hi Guys.
Quick question, because I haven't had a reply to my thread posted on the WP forum posted 2 days ago, and I know there's some clever mactalker just itching to help!

I'm setting up a small portfolio site* and have got about a dozen users, each editing their own page and sub-page/s.

I now need to place a link in the page template so that a visitor can email the author of the page they're currently viewing.

However, using the tag :
Code:
<?php the_author(); ?>
or
Code:
<a href="mailto:<?php the_author_email(); ?>">
in the template (no, NOT the page itself) returns null, blank, nada! Not even an error or anything.

Any ideas why this might be? The page author attribute seems to be correct. I have mucked around with user permissions a lot, but this doesn't even work with my own pages (i'm an administrator level user).

bag of jellybeans for the winner..

Jeremy

the URL is d*f*i*c*e*n*t*r*a*l*.*c*o*m - remove the asterisks
__________________
Join SqueekyTee (by Rushfaster) using this invite code!
norobots.net.au - My blog.
- Lots of macs : MB (black) C2D 2Gb, eMac 1.42Ghz 1.5Gb, eMac 700Mhz, Sawtooth AGP 400Mhz, iBook 800Mhz, iMac 350Mhz, iPod mini, iPod Touch 8Gb and one pretty disorganised life

jubilantjeremy is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #2 (permalink)  
Old 05-08-2008, 01:19 AM
Regular

Group: Regulars
Location: Melbourne, Australia


You're missing the closing tag of the <a>.

Code:
<a href="mailto:<?php the_author_email(); ?>">Email <?php the_author(); ?></a>
will output Email Author Name
__________________
-----
GraphicDZNR ¬
ichat • email • twitter • flickr • last.fm
GraphicDZNR is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #3 (permalink)  
Old 05-08-2008, 09:57 AM
Regular

Group: Regulars
Location: Perth


Quote:
Originally Posted by GraphicDZNR View Post
You're missing the closing tag of the <a>.

Code:
<a href="mailto:<?php the_author_email(); ?>">Email <?php the_author(); ?></a>
will output Email Author Name
Thanks GraphicDZNR; well spotted, but (unfortunately) that wasn't the problem (I cut+paste the snippet above from the wordpress tags page; in my own template I had it correctly).

I did some more playing around and late last night found that it works fine when placed inside the normal page content area; that is, when placed inside the page's main 'entry' DIV.

At the moment I've just placed it under the page's name. I'm not too hot with CSS at all and not really confident enough to try much else (I want it to be light grey); suggestions would be appreciated though

Cheers

Jeremy
__________________
Join SqueekyTee (by Rushfaster) using this invite code!
norobots.net.au - My blog.
- Lots of macs : MB (black) C2D 2Gb, eMac 1.42Ghz 1.5Gb, eMac 700Mhz, Sawtooth AGP 400Mhz, iBook 800Mhz, iMac 350Mhz, iPod mini, iPod Touch 8Gb and one pretty disorganised life

jubilantjeremy is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #4 (permalink)  
Old 05-08-2008, 10:30 AM
Regular

Group: Regulars
Location: Melbourne, Australia


Hit me up on ichat... I'll give you a hand
__________________
-----
GraphicDZNR ¬
ichat • email • twitter • flickr • last.fm
GraphicDZNR is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #5 (permalink)  
Old 05-08-2008, 11:18 AM
Regular

Group: Regulars
Location: Perth


Thanks mate. I'm off to tafe now, Truth be told I don't have an AIM/iChat account.. I might get one though, and take you up on that

Suggestions about the visual layout of the site are welcome from anyone too.. I'd like to make it a bit more usable and a bit more fluid to read. Still can't get those menu items left-justified!

Thanks again
Jeremy
__________________
Join SqueekyTee (by Rushfaster) using this invite code!
norobots.net.au - My blog.
- Lots of macs : MB (black) C2D 2Gb, eMac 1.42Ghz 1.5Gb, eMac 700Mhz, Sawtooth AGP 400Mhz, iBook 800Mhz, iMac 350Mhz, iPod mini, iPod Touch 8Gb and one pretty disorganised life

jubilantjeremy is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #6 (permalink)  
Old 05-08-2008, 08:16 PM
Regular

Group: Regulars
Location: Streaky Bay, South Australia
Blog Entries: 1


Btw 2.6 is out... and has been for a while.
__________________
MacBook White (Mid '07) Core2Duo 2.16GHZ - 120GB HDD, 3GB RAM, Mac OS X Leopard + AppleCare.
iPhone 3G 16GB Black // iPod Touch 1st Gen 8GB
AirPort Express Early 2008 (pre-n)
Beau is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #7 (permalink)  
Old 05-08-2008, 08:37 PM
Regular

Group: Regulars
Location: Melbourne


And Wordpress now offers 24/7 support.
__________________
Support MacTalk by shopping at the Apple Online store via this link!
Successful Trades: milliedog; Jimdrum
El Guardo is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #8 (permalink)  
Old 05-08-2008, 08:50 PM
Regular

Group: Regulars
Location: Perth


I've got 2.6 on my own blog but didn't upgrade this site because - well - if it ain't broke.,.?

Is that 24 hour support paid? Because I posted over 24 hours ago but no replies..

Thanks
Jeremy
__________________
Join SqueekyTee (by Rushfaster) using this invite code!
norobots.net.au - My blog.
- Lots of macs : MB (black) C2D 2Gb, eMac 1.42Ghz 1.5Gb, eMac 700Mhz, Sawtooth AGP 400Mhz, iBook 800Mhz, iMac 350Mhz, iPod mini, iPod Touch 8Gb and one pretty disorganised life

jubilantjeremy is offline
Profile CardPM
Go to the top of the page
Reply With Quote
 
Reply

Thread Tools

 
Similar Threads
 
Thread Thread Starter Forum Replies Last Post
Quick Question: How do i get movies on my iphone abure iPhone & Mobile Phones 10 22-07-2008 07:58 PM
Quick question regarding 1st Gen Unlocked iPhone + 2.0 beer.coffee iPhone & Mobile Phones 17 10-07-2008 03:36 PM
Quick Question: Mac Pro applecollector Desktop Computers 1 01-05-2008 01:24 PM
Quick Photoshop question spilla Mac OS X & All Software 3 05-04-2007 12:08 AM
Quick question - using projector or monitor with Macbook Erwin Notebooks 7 09-02-2007 12:11 PM