I am making a portfolio site where each portfolio entry is a subpage of "Work". In my template, I am trying to say something like: worked on 15 projects and counting, where 15 is the total number of subpages.
Whats the easiest way to do this?
|
I am making a portfolio site where each portfolio entry is a subpage of "Work". In my template, I am trying to say something like: worked on 15 projects and counting, where 15 is the total number of subpages. Whats the easiest way to do this? |
|||
|
|
|
Use the following code, replacing the number after "child_of=" to the id of the parent page.
Reference: get_pages |
|||
|