WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Download Manager
PHP Code to use on php files? (3 posts)

  1. s2pidkaspr
    Member
    Posted 1 year ago #

    Is there any way I could use the download button on single.php / page.php files directly using a php code? Instead of using shortcode for the posts?

    http://wordpress.org/extend/plugins/download-manager/

  2. Shaon
    Member
    Plugin Author

    Posted 1 year ago #

    yes, you can use:
    <?php do_shortcode('[wpdm_file id=123]'); ?>

  3. gladsonucan@gmail.com
    Member
    Posted 1 year ago #

    <?php echo do_shortcode('[wpdm_file id=2]'); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.