Create array in a foreach loop from wordpress custom post categories
<?php $category = get_terms('gallery_albums');//custom category name foreach ($category as $catVal) { $AlbumName[] = $catVal->name; } echo "<pre>"; print_r($AlbumName); echo "</pre>"; ?>
List Categories For Custom Post
<?php $category = get_terms('task_categories');//custom category name foreach ($category as $catVal) { echo '<h2>'.$catVal->name.'</h2>'; } ?>
OOP (Object-Oriented Programming)
4 Pillars of OOP
Encapsulation
Abstraction
Inheritance
Polymorphism
ID Number Breakdown
The first six digits (YYMMDD) are based on your date of birth
23 January 1988 would be written as : 88 01 23
The next four digits (SSSS) are used to define your gender
females are assigned numbers in the range 0000-4999
males are assigned numbers in the range 5000-9999
The next digit (C) shows if you are an
SA citizen – 0 – or a permanent resident – 1
The next digit (A) was used until the late 1980s to indicate a person’s race. This has been eliminated and old ID numbers were reissued to remove this.
The last digit (Z) is a checksum digit – used to check that the number sequence is accurate using the Luhn algorithm.
© Garth Baker 2025 All rights reserved.