...

View Full Version : Wordpress Custom Field Suite



jarv
08-03-2012, 10:20 AM
Hi,

I have installed the Wordpress plugin Custom Field Suite from here: uproot.us

I have added icon_1 and text_1 and using the following code to try to out put my icon and text but nothing gets output



<?php
/*
* Displays the featured icon and title
*
*/
global $cfs;

$list = array();
echo $cfs->get("text_1");
foreach ( range( 1, 40 ) as $i ) {
if ( ! $href = $cfs->get("icon_$i"))
continue;
$icontext = $cfs->get("text_$i");

$list[] = "<li><h2>$icontext</h2><img src='$href' width='235' height='176' alt='' /></a></li>";
}

if ( $list )

echo implode( "\n", $list );?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum