• Resolved pixelgra

    (@pixelgra)


    Hi, how should I go about creating a pdf list?
    How do I put pdfs in a category?
    I uploaded a pdf, I assigned a category to it but I don’t see it within that category …
    Then what is the shortcode needed to view the pdf list?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author mauvedev

    (@mauvedev)

    Hi @pixelgra

    From the WordPress dashboard > Media > Library, attach the pdfs to a page ‘Uploaded to’ column then give the pdf files a category i.e ‘cakes’ from within there properties by clicking the ‘Edit’ option under the file name.

    Example shortcode would be [medialist category=cakes], you can also set globalitems=1 within the shortcode combined with a category if you don’t want to attach an uploaded file to a specific page first, this removes the extra step.
    Example [medialist category=cakes globalitems=1]

    Note however that if you do not set a valid category before using globalitems=1 then your medialist will display all items uploaded to the media library.

    Thread Starter pixelgra

    (@pixelgra)

    Hi mauvedev,
    I followed exactly the procedure you told me but it doesn’t work … I am attaching the 3 screenshots so you can see the result in the frontend

    https://www.pixelstudiocreativo.it/wp-content/uploads/2022/09/01-file-category.jpg
    https://www.pixelstudiocreativo.it/wp-content/uploads/2022/09/02-shortcode-in-the-backend.jpg
    https://www.pixelstudiocreativo.it/wp-content/uploads/2022/09/03-what-I-see-in-the-frontend.jpg

    Where do you think the problem can be?
    Thanks

    Thread Starter pixelgra

    (@pixelgra)

    I did some tests and with this shortcode [medialist category = circolari2022 globalitems = 1] and I see the filename.
    globalitem = 1 what is it for?
    What should I add to the shortcode to see the pdf icon of the file?
    Thank you

    Plugin Author mauvedev

    (@mauvedev)

    No worries, I did see in your second screenshot that the shortcode used was incorrect, the shortcode needs to start with ** [medialist **.

    The tag globalitems=1 forces the display of all items that have been uploaded to the website, when using this tag it is advised to use some other limiting tag at the same time. i.e a full qualified shortcode would look something like this:

    [medialist category=some-category mediatype=pdf globalitems=1]

    Descriptions of each tag type can be found on the plugins main page.

    Icons are displayed automatically based on the file, a medialist is able to display multiple file types simultaneously, if icons are not displaying then this would be an indication of an error in your browsers cache (try a different browser) or an underlying issue with the websites installation or hosting.

    Thread Starter pixelgra

    (@pixelgra)

    Ok, everything works but I don’t see the pdf icons with firefox or chrome ….
    Isn’t there a part of the shortcode that I can add to force the display of a small icon for each pdf in the list?

    Plugin Author mauvedev

    (@mauvedev)

    Icons are displayed automatically. If you’re happy to provide a link to a page where the icons are not showing I can take a look and see what might be causing it and whether it is related to a bug in my plugin.

    Thread Starter pixelgra

    (@pixelgra)

    Hi,
    here is the link where there are two proofs of inserting your shortcode

    https://www.pixelstudiocreativo.it/prova/

    Thanks

    Plugin Author mauvedev

    (@mauvedev)

    Hi @pixelgra

    Your site is not loading the css file for the plugin, i.e missing the following from your page header,

    <link rel=”stylesheet” id=”media-list-css” href=”…path to css…/wp-content/plugins/media-list/styles/styles.css?ver=6.0.2″ media=”all”>

    I suspect you have something running on the site be it another plugin or how you’re hosted/configured.

    Thread Starter pixelgra

    (@pixelgra)

    Perfect, everything works.
    I have one last question: how can I view the list of files 5 at a time with two PREV and NEXT buttons below to view all the other files in the list?
    See the example on this page
    https://www.studioconsulenza.com/circolari

    Plugin Author mauvedev

    (@mauvedev)

    Yes, you can achieve something similar by adding a second [medialist] shortcode to the page and adding mediaitems=5

    i.e [medialist mediaitems=5 mediatype=pdf]
    [medialist mediaitems=5 mediatype=images]

    or

    [medialist mediaitems=5 category=listone]
    [medialist mediaitems=5 category=listtwo]

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘pdf’ is closed to new replies.