There is no discontinuity between being a photographer and programming in PHP

I am both. Unfortunately, if you want to customize things then acquiring some knowledge is essential.
In your case above, you need to understand that the "get" versions of functions never produce output, just return something that you then have to act on. The "print" versions are the ones that put something on the page.
So `getTags` returned you a list of tags. If you want them shown you have to format them for your page.