The PDF Embedder WordPress plugin allows you to add and embed PDF files in your WordPress site. This article explains how to combine that with the GeoDirectory plugin.
It is a bit of a manual process every time a user adds a PDF but gives you a nice PDF display on the page.
See a listing with a PDF embedded here (opens in a new window or tab)
- Download the PDF Embedder plugin the normal WordPress way and activate.
- Create a file upload custom field.
- Create a HTML custom field, with the following settings:
- Admin edit only? Yes - This is important, because you do not want your users to have access to this field.
- Add the field as a new tab on the detail page.
- When a user uploads a PDF file, add the URL of the file to the PDF embedder shortcode in the HTML field.
- For example for the Brochure tab in the sample listing we used
- For example for the Brochure tab in the sample listing we used