Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$parent = '/processwire/access/users/' . $user->name;
foreach($pages->get("/tools/categories/")->children("sort=title") as $tag) {
echo "<h2>$tag->title</h2>";
foreach($pages->find("parent={$parent}, course_categories=$tag") as $p){
echo "<a href='{$p->course_documents->url}'>{$p->course_documents->name}</a>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.