Hi
I have two CPT “companies” and “documents” a company may have multiple documents.
On the single view of a specific company it has a list of the documents, what I am trying to do is filter the loop of the documents by author_id. As author_id would be the same for the company and documents.
<Loop type=document count=-1 orderby=date order=desc
author=author_id>
<li>
<a href="{Field url}"><Field title /></a>
</li>
</Loop>
but it just won’t work in the precious plugin there was a variable called same and this does not work I have tried numerous ways with no joy.
If I manually put in the author_id say the number 3 (The author id) it works.
Please could someone help
thanks