Menu

The 50 Causes

Click the available links below to read more about the causes.

[insert_php]
$pageArray = explode(“

“,wp_list_pages(‘title_li=&echo=0&depth=1&child_of=49’));
$pageCount = count($pageArray) – 1;
$pageColumns = round($pageCount / 3);
$twoColumns = round($pageColumns + $pageColumns);

for ($i=0;$i<$pageCount;$i++) { if ($i<$pageColumns){ $pageLeft = $pageLeft.''.$pageArray[$i].'

‘;
}
elseif ($i<$twoColumns) { $pageMiddle = $pageMiddle.''.$pageArray[$i].'

‘;
}
elseif ($i>=$twoColumns) {
$pageRight = $pageRight.”.$pageArray[$i].’

‘;
}
};
[/insert_php]

    [insert_php] echo $pageLeft; [/insert_php]
    [insert_php] echo $pageMiddle; [/insert_php]
    [insert_php]echo $pageRight; [/insert_php]
[maxbutton id="1"].[maxbutton id="2"].[maxbutton id="3"].