Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

custom fields with hot link


 
Prev Previous Post   Next Post Next
  #1  
Old Jun 4, 2010, 01:58 PM
alfie
 
74 posts · Apr 2010
Long Island NY
custom fields with hot link

I am trying to access a custom field which consists of a url address. www.name.com

I wish to use this as a hot link to the website. I first tried it without the hot link and it worked. code shown below.

<?php if (is_category()) {
$customfield = get_post_custom_values("Author");
if (isset ($customfield[0])) {
echo "Author: ". $customfield[0] ;
$customfield = get_post_custom_values("WebSite");
echo "WebSite: ". $customfield[0] ; }
} ?>

I then tried to change it to become a hot link substituting the line below .


echo "WebSite: ". '<a href= "$customfield[0]">website name</a>' ; }

all that showed up was the website name?


I included this in index.php

just before bfa_center_content(....)
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
preset bfa custom fields (bfa_ata_option meta fields) Douglas Center area post/pages 2 Jan 3, 2011 04:36 PM
Need help with custom fields. webservant7 Center area post/pages 1 Feb 20, 2010 02:43 PM
Custom Fields Cannot be Deleted elenniel Post-Kicker, -Byline & -Footer 6 Aug 31, 2009 08:00 AM
Custom fields tommis Atahualpa 3 Wordpress theme 0 Aug 14, 2009 09:15 AM
Custom post fields wwday3 Post-Kicker, -Byline & -Footer 8 Jul 28, 2009 11:39 AM


All times are GMT -6. The time now is 03:30 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.