Return to Snippet

Revision: 14430
at June 3, 2009 22:33 by kstetson


Updated Code
// On code side:

Category:&nbsp;<?php
$group = get_post_meta($post->ID, 'Category');
foreach(($group) as $groups) { 
	echo $groups;
}
?>

Features:&nbsp;<?php
$group = get_post_meta($post->ID, 'Features');
foreach(($group) as $groups) { 
	echo $groups;
}
?>

<?php
$group = get_post_meta($post->ID, 'SiteLink');
foreach(($group) as $groups) { 
	echo $groups;
}
?>

<?php
$group = get_post_meta($post->ID, 'Description');
foreach(($group) as $groups) { 
	echo $groups;
}
?>


// On wp side:

[Category]
type = textfield

[Features]
type = textfield

[SiteLink]
type = textarea
rows = 2
cols = 60
tinyMCE = true

[Description]
type = textarea
rows = 8
cols = 60
tinyMCE = true

Revision: 14429
at June 3, 2009 22:00 by kstetson


Initial Code
On code side:

Category:&nbsp;<?php
$group = get_post_meta($post->ID, 'Category');
foreach(($group) as $groups) { 
	echo $groups;
}
?>

Features:&nbsp;<?php
$group = get_post_meta($post->ID, 'Features');
foreach(($group) as $groups) { 
	echo $groups;
}
?>

<?php
$group = get_post_meta($post->ID, 'SiteLink');
foreach(($group) as $groups) { 
	echo $groups;
}
?>

<?php
$group = get_post_meta($post->ID, 'Description');
foreach(($group) as $groups) { 
	echo $groups;
}
?>


On wp side:

[Category]
type = textfield

[Features]
type = textfield

[SiteLink]
type = textarea
rows = 2
cols = 60
tinyMCE = true

[Description]
type = textarea
rows = 8
cols = 60
tinyMCE = true

Initial URL


Initial Description


Initial Title
Custom Fields Template in WP - corresponding code snippets

Initial Tags
php, template, wordpress, code

Initial Language
PHP