Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter butred77

    (@butred77)

    Hello , I would like to include in all published download the shortcode [ to_like ] [ download id = ” * ” ] [ / to_like ]

    What should I put in the file function.php ?

    thanks

    Plugin Author Lester Chan

    (@gamerz)

    Nope that is not possible. It doesn’t support wildcard.

    Closest you can do is to display the category

    [download category="1"]

    Thread Starter butred77

    (@butred77)

    I partially solved by inserting this line in my file function.php

    add_filter ( ‘ download_embedded ‘ , ‘ do_shortcode ‘ ) ;

    but it only works if the page is only a download or work with the first download of a list

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Short code in template’ is closed to new replies.