• Resolved sierragirl78

    (@sierragirl78)


    Hello, I am running the theme Bones with WordPress 4.7.2 and am using PDF & Print to render user generated quotes in PDF format.
    Unfortunately, I cannot figure out why PDF & Print does not render anything within the shortcode:

    [CP_CALCULATED_FIELDS_RESULT id="14"]
    [/CP_CALCULATED_FIELDS_RESULT]

    It works excellently for anything outside of the the above shortcode.

    Error checking:

    • I have checked the generated source code of the generated PDF and while it includes all content outside of the shortcode, everything inside it is missing.
    • I have checked all CSS for visibility and display conflicts.
    • I have turned off the Settings for shortcodes: Do!
    • I have turned on the Settings for shortcodes: Do!
    Environment	
    Operating System 	Linux
    Server 	Apache
    Memory usage 	61.8 Mb
    MYSQL Version 	5.6.34-79.1-56-log
    SQL Mode 	NO_AUTO_CREATE_USER
    PHP Version 	5.3.29-pl0-gentoo
    PHP Safe Mode 	Off
    PHP Allow URL fopen 	Off
    PHP Memory Limit 	268435456
    PHP Max Upload Size 	100M
    PHP Max Post Size 	100M
    PHP Max Script Execute Time 	N/A
    PHP Exif support 	Yes ( V1.4 )
    PHP IPTC support 	Yes
    PHP XML support 	Yes
    Site URL 	http://www.columbialabel.com
    Home URL 	http://www.columbialabel.com
    $_SERVER[HTTP_HOST] 	www.columbialabel.com
    $_SERVER[SERVER_NAME] 	www.columbialabel.com
    WordPress Version 	4.7.2
    WordPress DB Version 	38590
    Multisite 	No
    Active Theme 	Bones (Rename Me!) 1.7
    
    Active Plugins	
    Akismet 	3.2
    All-in-One WP Migration 	6.40
    All In One SEO Pack 	2.3.11.4
    Calculated Fields Form 	10.0.132
    Check and Enable GZIP compression 	1.1.7
    Google Analytics 	1.0.15
    Huge IT Video Player 	1.2.4
    Master Slider 	2.9.5
    Mobile Navigation 	1.5
    PDF & Print by BestWebSoft 	1.9.3
    Preserve Code Formatting 	3.7
    Shortcodes Ultimate 	4.9.9
    Simple Page Ordering 	2.2.4
    Today's Date Inserter 	1.2.1
    Virtual Robots.txt 	1.8
Viewing 1 replies (of 1 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for contacting us!

    In order to generate pdf/print version of the page, PDF & Print plugin uses the content that is featured in the body of post/page before it is displayed by the browser (i.e. the data featured in the main block on this post/page in the edit mode).

    If the shortcode works before the formation of the content (for example, using add_filter( 'the_content', 'filter_function_name' )), not after it has been formed (for example, using JavaScript functionality), then, the shortcode will show up, otherwise, it won’t.
    If the shortcode uses scripts which add the content after the page is loaded from an external resource (for example, facebook, twitter, google+1, buttons), the shortcode also won’t show up.

    Unfortunately, we cannot provide the compatibility with each and every WP plugins, but we made it possible for all user to customize it.
    If you have programming skills, then you will cope with adding the necessary content to be displayed in pdf.
    To add the custom content, please use ‘bwsplgns_get_pdf_print_content’ hook:
    1) Go to the plugin settings page;
    2) Open “Custom code” tab, mark “Activate” checkbox in the “Editing bws-custom-code.php” section;
    3) Add the following code (as example):

    
    function get_pdf_print_content( $content ) {
        return $content . 'Hello, world';
    }
    add_filter( 'bwsplgns_get_pdf_print_content', 'get_pdf_print_content' );
    For more info see https://support.bestwebsoft.com/hc/en-us/articles/205454653

    Of course we can also help you with your problem if you really need this. This is a paid service. Our specialist also need some time to investigate this 3rd party plugin and make the required changes.

    Sincerely,
    BestWebSpft Support Team

Viewing 1 replies (of 1 total)

The topic ‘PDF & Print not rendering content within shortcode’ is closed to new replies.