Display Attachments in a Package Individually

Viewing 6 posts - 1 through 6 (of 6 total)
#201507

Cristofer Mejia
Participant

I am using the following shortcode to display a list based on certain categories:
[wpdm_category id="brochures, terraclad" operator="AND" order_by="create_date" order="ASC" cols="2" colspad="2" colsphone="1" toolbar= "0" paging="0" ]

What I want is to show all the files attached to that package and not just the PDF, for example if you see the following URL, you can see in the image that it only shows the PDF icon (I click on it and it downloads a zip with the two files) but I want the downloads to be individual and show both files independently

LINK IMAGE

#201510

Nayeem Riddhi
Moderator

Hello Cristofer Mejia,

Hope you are well. Thanks for writing to us. You can use [file_list] template tag in your link template for showing attached files for your files/packages. Please kindly check and let me know, if you have any queries.

Thank you and kind regards

#201535

Cristofer Mejia
Participant

Hi Nayeem Riddhi,

I already achieved what I wanted but I had to use CSS and some styles that I don’t see as flexible but I don’t see another solution, it would be good if each file had a unique class to identify them or instead of the “download” button give the option to show an image instead with the same functionality.

Same thank you very much for the help :).

#201539

Nayeem Riddhi
Moderator

If you want different in style for your shortcode you can customize the link templates if you are using PRO version of WPDM. Please kindly check.

Thank you and kind regards

#201647

Cristofer Mejia
Participant

Hi Again Nayeem Riddhi,
I want to get the package ID that is displayed on my page, is it possible? I am using a combination of the shortcode:
[wpdm_category id="details, terraclad" operator="AND" order_by="create_date" order="ASC" cols="2" colspad="2" colsphone="1" toolbar= "0" paging="0" ]
And I modified the default template to display the structure I need, I tried to use get_the_ID but it returns me the post ID but not all the packages that are displayed on my page

<!-- WPDM Link Template: Default Template -->

<div class="link-template-default card mb-2">
    <?php 
        echo 'Post ID: ' . get_the_ID();
    ?>
    <div class="card-body">
        <div class="media">
            <div class="mr-3 img-48">[icon]</div>
            <div class="media-body">
                <h3 class="package-title">[page_link]</h3>
                <div class="text-muted text-small"><i class="fas fa-copy"></i> [file_count] [txt=file(s)] <i class="fas fa-hdd ml-3"></i> [file_size]</div>
            </div>
            <div class="ml-3">
                [file_list_extended]
                [download_link]
            </div>
        </div>
    </div>
</div>
#201652

Nayeem Riddhi
Moderator

For getting package ID, you can simply use this <?php echo $ID; ?>, please kindly check and let me know, if it works for you.

Thank you and kind regards

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

You must be logged in to reply to this topic.