Skip to content
DearFlip WordPress
  • Plugins
    • WordPress Flipbook
    • JS Flipbook
    • Joomla Flipbook
  • Demos
    • Embedded Example
    • Popup Examples
    • Online PDF Viewer
  • Pricing
  • Docs
  • Support
  • Account
  • Blog
DearFlip WordPress
  • Plugins
    • WordPress Flipbook
    • JS Flipbook
    • Joomla Flipbook
  • Demos
    • Embedded Example
    • Popup Examples
    • Online PDF Viewer
  • Pricing
  • Docs
  • Support
  • Account
  • Blog

Getting Started

  • Getting Started – Quick
  • Installation
  • Create 3D Flipbooks
  • Create Spiral 3D Flipbook (Pro)
  • Create Hybrid 3D Flipbook (Pro)
  • Create PDF Viewer/Reader
  • Create Slider Viewer

Organizing Flipbooks

  • Organizing Flipbooks
  • Multiple Flipbooks in a page
  • Using Categories
  • Using Book Shelf (Pro)
  • Sort Flipbooks (Pro)
  • Open Flipbook with custom buttons & elements(PRO)

Features & Settings

  • Selective Script Loading
  • Features & Settings – Quick
  • Google Analytics(PRO)
  • Settings
  • Shortcode-options

Customizations

  • Customizing Layout / Controls (look)
  • Customizing Buttons
  • Customize popup thumb
  • Customize Page/PDF Links
  • Turn off Zoom on mouse scroll
  • Remove or change Download button
  • Remove Share Button
  • Open Book at certain page
  • Open Flipbook in New Tabs

FAQs

  • Icons are missing?
  • PDF not Loading!
  • PDF loading is slow!
  • Fullscreen Faqs
  • General FAQs & Issues
  • Flipbook loading issue
  • Change Log

Presale, Purchase & License

  • Purchase & Licensing / Upgrading
  • Free(Lite) vs Premium Comparision
  • License Utilization
  • License Activation issues
  • How to Change Invoice details
View Categories
  • Home
  • Documentation
  • Features & Settings
  • Shortcode-options

Shortcode-options

2 min read

DearFlip 3D Flipbook plugin for WordPress uses shortcode to display PDFs. The shortcode can be used in various combinations to achieve your requirements.

OptionsDescription
id
ID of DearFlip Post or PDF attachment Post
source
Source of the PDF file.
Used as an alternate method for id
type
Sets the type of lightbox(popup)
Possible values are thumb, button (PRO), link (PRO), custom (PRO)
viewertype
PRO only Sets the Viewer Type for PDF Viewer.
Possible values are reader , flipbook, slider
is3d
PRO only If viewer is flipbook, turns 3D on or off.
Possible values are true, false
height
PRO only Sets height of the embedded viewer. Default value is auto. Doesn’t apply to popup modes.
Example values are 100px, 100%
page (PRO)
data-page

Set the page to open at start.
Example page=4 open the flipbook at page 4

id #

You can add id of the WordPress Flipbook post or WordPress PDF attachment post to create PDF viewer using shortcode.

Example Shortcode: [dflip id="12"][/dflip]

Id of other posts will not create any viewer. It will result in: ERROR: Set a Valid Document Source.

source #

Instead of ID, you can add source URL PDF file to create PDF viewer using shortcode. But without ID, share links won’t work properly. They cannot open the shared page.

Example Shortcode: [dflip source="http://www.abc.com/mypdf.pdf"][/dflip]

Make sure the PDF is accessible and has proper CORS access if the file is from different domain.

Demo: Viewer from Source

With custom id: By using a custom id, non numeric, share URL can retarget the process of opening certain page on load:

[dflip source="http://www.abc.com/mypdf.pdf" viewertype="vertical" type="button" id="custom_test_id"]Source Type with custom ID[/dflip]

Source Type with custom ID

type #

With type option you can determine what kind of lightbox(popup) trigger will be created.

Example Shortcode: [dflip id="12" type="button"][/dflip]

Possible values are thumb, button (PRO), link (PRO), custom (PRO)

Demo:

ShortcodeOutput
[dflip id="12" type="thumb"][/dflip]LifeStyle Magazine
[dflip id="12" type="button"][/dflip](PRO)LifeStyle Magazine
[dflip id="12" type="link"][/dflip] (PRO)LifeStyle Magazine
[dflip id="12" type="custom"]Custom Text/CUSTOMiconHTML[/dflip](PRO)
CUSTOMiconHTML

viewertype (PRO) #

Sets the Viewer Type for PDF Viewer.

Example Shortcode: [dflip id="12" viewertype="reader"][/dflip]

Possible values are reader , flipbook

Demo:

Viewer Type Flipbook Viewer Type Reader/Vertical

is3d (PRO) #

If viewer is flipbook, turns 3D on or off.

Example Shortcode: [dflip id="12" viewertype="flipbook" is3d="true"][/dflip]

Possible values are true, false


height (PRO) #

Sets height of the embedded viewer. Doesn’t apply for lightbox(popup) solutions.

Example Shortcode: [dflip id="12" height="500px"][/dflip]

Example values are 100px, 100%

Can be confused with thumb popup height. It is set by using CSS https://wp.dearflip.com/docs/change-size-of-popup-thumb/

page #

Pro version supports both data-page and page. Lite version only supports data-page.
Set the page to open at start. Example: page=4 open the flipbook at page 4

Example Shortcode:
[dflip id="12" page=4][/dflip] (Pro Only)
[dflip id="12" data-page=4][/dflip]

Open page at 4

Still stuck? How can we help?

How can we help?

Updated on July 31, 2024

Leave a Comment Cancel reply

Table of Contents
  • id
  • source
  • type
  • viewertype (PRO)
  • is3d (PRO)
  • height (PRO)
  • page

Links

  • Terms and Conditions
  • License Terms
  • Privacy Policy
  • Browser Test

Recent Posts

  • (no title)
  • Protected: Flipbook in a password page
  • Case Study: Open PDF File links as Flipbook
  • Transparent background example
  • Multiple Embeds in a Page

Products

  • DearFlip 3D Flipbook JS Plugin
  • DearFlip 3D Flipbook WordPress Plugin
  • DearFlip 3D Flipbook Joomla Plugin
  • Online PDF Viewer
  • DearFlip PDF Flipbook for Chrome
  • Mashshare Social Sharing WordPress plugin
© 2026 | A product of DearHive.com