WordPress.org

Forums

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

  1. s2pidkaspr
    Member
    Posted 2 years 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 2 years ago #

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

  3. gladsonucan@gmail.com
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Download Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.