Add description to files in the tree view

in Download Manager Free

Viewing 3 posts - 1 through 3 (of 3 total)
Feb 17, 2018 at 5:02 pm
#69777
Member
Claire
OP

Hello,
Tree view: I’m trying to add the description of the files (an unlinkable row below the file title/link) or the excerpt.
Add-on extended shortcode installed.

In the page https://www.wpdownloadmanager.com/wordpress-download-manager-free-v2-2-9-released/ I read:

Additionally we have fixed minor issues with displaying image with file description and category view. Also re-optimized the file list view to make it better looking.

but I can not find a way to add the description parameter
[wpdm_tree download_link=1 description=1]

Should I modify something in the
wpdm-extended-shortcodes/wpdm-extended-shortcodes.php file of the plugin?

Feb 17, 2018 at 8:05 pm
#69786

Hi,

Yes, you need to modify that file if you want to insert custom description, as tree view doesn’t support the description parameter as you mentioned. That line is for fixing an issue with packages.

Thanks

Feb 18, 2018 at 9:54 am
#69812
Member
Claire
OP

In the line 484 line I added description tag

 else
echo "<li  class='file ext_$ext'><a href='" . wpdm_download_url(get_the_ID()) . "' rel='" . wpdm_download_url(get_the_ID()) . "'>" . get_the_title() . "</a>[description]</li>";
            }
        }
        echo "</ul>";
        die();
    }

but clearly it is not supported; where should I add the description parameter?

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

The topic "Add description to files in the tree view" is closed to new replies.