How can I show the Save as PDF button only in certain situations?
Use the placement method that matches the condition. The button can be shown by automatic placement, by a shortcode in page content, or by a PHP helper in theme or plugin code.
For selected pages or content types
Use the Show Button on option when the same rule should apply to a broad content type, such as posts or pages.
For one specific page or post, add the shortcode where the button should appear:
[save_as_pdf_pdfcrowd]
If this creates two buttons, automatic placement is still enabled for that page type. Use the manual-placement FAQ to fix that: How do I add the Save as PDF button manually without showing it twice?.
After a form submission
If your form plugin has a confirmation message, thank-you page, or success page, place the shortcode there.
If the form shows the result without reloading the page and the PDF should
include values the visitor just entered, set the
Conversion Mode option to
Content for that button or page.
If the form result is inserted by JavaScript after the page has loaded, make sure WordPress actually renders the shortcode before the visitor clicks it. If the form plugin does not process shortcodes in AJAX-loaded content, use a normal success page or add the button from theme/plugin code.
Inside an accordion, tab, or page-builder section
Place the shortcode inside the accordion, tab, or section content. This works when the content is already rendered in the page and is only hidden until the visitor opens it.
If the section is loaded only after the visitor clicks it, check that the shortcode is processed and that the plugin scripts are present on the page.
For logged-in users or template conditions
Use your membership plugin, page builder, or block visibility feature to show or hide a shortcode for logged-in users when possible.
If you are editing a theme template or custom plugin, put the PHP helper inside your WordPress condition:
if ( is_user_logged_in() ) {
echo create_save_as_pdf_pdfcrowd_button();
}
Use the PHP helper only for template-level placement. For normal page editing, the shortcode is simpler and easier to maintain.
After the button is shown, normal conversion settings still apply
Conditional placement only controls whether and where the button appears. It does not change what the plugin converts or how the PDF is generated.
After the visitor clicks the button, it behaves like any other Save as PDF button and uses the same plugin settings. If this conditional button needs different settings from the site-wide button, set those options on the shortcode or PHP helper for that button.