• It should be pretty easy to add a Widget to the plugin. The widget probably wouldn’t need any options other than Title, and would do something like the following:

    if is_single() || is_page() {
    global $post; // get the current post

    $files = get_download_attachments_for_post($post->ID);

    if ($files) { // list files for download }
    else { return false; } //do not render widget if no attachments to download.

    }

    https://ww.wp.xz.cn/plugins/download-attachments/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Request: Make List Available as Widget’ is closed to new replies.