thanks, putting $terms before the if (have_rows(‘document_pages’) ): does the trick, should have known! thank you 🙂
Sorry – I may not have made myself clear – I want to grab the terms/categories from within the if ($post_object->ID == $currentPageID) so only the documents connected to the post object display on the respective page.
The method you have sent me grabs ALL of the terms/categories and displays it on all pages…
Just to reiterate, the client wants the document uploader to be accessible through one page (options) rather than on a page by page basis, as it is too difficult for them to organise.