Custom Fields

Custom Fields feature allows you to include WordPress custom fields (also known as post meta) in your PDF. This means any additional data you’ve added to your posts, pages, or custom post types can automatically appear in the generated PDF.

How to Enable Custom Fields

Step 1: Select the Default Template

  1. Go to DK PDF > PDF Templates in your WordPress admin
  2. Select “Default” from the “PDF Template Sets” dropdown
  3. Click “Save Settings”
Select Default template to see Custom Fields tab.

Once you’ve selected the Default template, a new “Custom Fields” tab will appear in the DK PDF settings menu.

Step 2: Enable Post Types

  1. Go to DK PDF > PDF Button tab
  2. Check the boxes for the post types where you want to include custom fields (e.g., Post, Page)
  3. Click “Save Settings”

Step 3: Select Custom Fields to Display

Select custom fields for each post type.
  1. Go to DK PDF > Custom Fields tab
  2. You’ll see a section for each post type you enabled in Step 2
  3. For each post type:
    • Click on the dropdown field
    • Start typing to search for custom fields, or browse the list
    • Select one or multiple custom fields you want to include in the PDF
  4. Click “Save Settings”

After selecting these fields in the Custom Fields settings, your PDF will show them after the content:

Custom fields displayed in the PDF.