How to create multiple pages for PDFs

If you really want to include them in a page, you could create a page template which pulls in the requested PDF by ID. So for example, you create the Page www.example.com/pdf/ and add a query string so when someone visits www.example.com/pdf/?id=234 they see the PDF which has a post ID of 234. Within the … Read more

TCPDF only exports .pdf when user is administrator

This was due to 2 mistakes in code restricting client access to wp-admin. There was no exception for admin-post.php , so after a request to admin-post the client was redirected back to client area. Hence the ‘reloads’ after clicking the link. After the redirect in the restriction code, there was no die() or exit statement. … Read more