2011-12-29, 23:59:17
Hi... I've looked for solution, but didn;t find...
I have plugins: PageXML and i18n custom field. And when I get standard fields for ex. title i want get my custom field to: "category":
if($strona=="portfolio") {
$childlist = getChildren(return_page_slug());
$subpagelist = array();
foreach($childlist as $child) {
if (returnPageField($child, 'private') != 'Y')
$subpagelist[] = array($child, returnPageField($child,'title'), returnPageField($child,'menuOrder'), returnPageField($child,'category'));
}
/* sort children my menuorder subval_sort is built in to GS2.1+ */
$subpagelist = subval_sort($subpagelist ,2);
foreach($subpagelist as $subpage) {
$thumb = '/data/uploads/' . $subpage[0] . '_thumb.jpg';
$link = $subpage[0] . '/';
$title = $subpage[1];
$cat = $subpage[3];
echo 'check: '.$cat.' '.$title.' / ';
}
}?>
I tried to return_custom_field('') but didn't work... anybody has some advice for me?
I have plugins: PageXML and i18n custom field. And when I get standard fields for ex. title i want get my custom field to: "category":
if($strona=="portfolio") {
$childlist = getChildren(return_page_slug());
$subpagelist = array();
foreach($childlist as $child) {
if (returnPageField($child, 'private') != 'Y')
$subpagelist[] = array($child, returnPageField($child,'title'), returnPageField($child,'menuOrder'), returnPageField($child,'category'));
}
/* sort children my menuorder subval_sort is built in to GS2.1+ */
$subpagelist = subval_sort($subpagelist ,2);
foreach($subpagelist as $subpage) {
$thumb = '/data/uploads/' . $subpage[0] . '_thumb.jpg';
$link = $subpage[0] . '/';
$title = $subpage[1];
$cat = $subpage[3];
echo 'check: '.$cat.' '.$title.' / ';
}
}?>
I tried to return_custom_field('') but didn't work... anybody has some advice for me?