Using the buffer-output function in wordpress
See the writeup on the output buffer function here:
in the wordpress wiki. In my case, I have pages which are basically “table of contents pages” for the subpages. So, I’m enhancing the general page template to collect the list of subpages (if any). And then, if there ARE any (i.e., it’s a non-empty string), I can do my print thing.

