• Resolved laskowv

    (@laskowv)


    I have the Extended Short-codes, Button Templates, and TinyMCE button plugins. It is working great!! I love the extended template with the boxes around it.

    However, I want one of the categories, let’s say “membership”, to actually not download automatically (not the “download_url”) — but instead go to those files permalink pages. The shortcode puts the following in my page:

    [wpdm_category id=”membership,” cols=”1″ toolbar=0 item_per_page=10 download_link=0 template=”link-template-default-ext”]

    And when you hover of the link, it is something like this: http://www.nssdp.com/public/?wpdmdl=1598

    I tried changing the “download_link=0” to another number, but it did not work. I tried removing it, did not work either; both displayed the download shortlink code.

    I realize I need to copy the template and make a new one to display the permalink and place that in the shortcode on the page; but I did not see where the variable for the permalink was being stored. The variable ?wpdmdl=1598 seems to be short for direct download. Is there another shortcode for accessing the permalink?

    https://wordpress.org/plugins/download-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Shahriar Alam

    (@shahriar0822)

    Use [wpdm-all-packages] Shortcode. It will attach package details page url with package name.

    Or create a new link template for category shortcode. Template tag for package details page is [page_url]

    Thread Starter laskowv

    (@laskowv)

    Thanks. The [wpdm-all-packages] gives me the correct link, but not the panel display.

    Adding a new template with the [page_url] did not work. I needed to add it to the selections in wpdm-functions.php. Is there any other php files I need to add my template to?

    Thread Starter laskowv

    (@laskowv)

    Nevermind — there were two lines, not one, in wpdm-functions.php I had to modify with the new template. Everything is working great now. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode needed for permalink and not direct download’ is closed to new replies.