• Hi Dan,

    I’m very new to any kind of coding but I am running a WordPress blog as a resource site as part of my communications job. I’m using document gallery to display a selection of PDF, Excel, Word, and PowerPoint files on different pages (for different target audiences). Right now, all files are displaying as the generic icon, but I would like them to display as the first page of the file.

    First question – is it possible to display the first page of a file other than PDFs?
    Also, what I have done is try to put fancy=true by my dg code (currently I’m using dg ids=”number, number, number”] I get a message that ‘true’ is not a value.

    Can you point me in the right direction?

    Thanks!
    Jackie

    https://wordpress.org/plugins/document-gallery/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Jackie,

    In answer to your first question regarding icons for non-PDF documents, yes. In order to make that possible, you’ll need to enable Google Document Viewer as a thumbnail generator. To do that, in your dashboard navigate to Settings -> Document Gallery -> Thumbnail Generation -> Google Drive Viewer.

    In regards to the fancy flag, true is the default value so you should be able to leave that off. That said, you shouldn’t be getting an error for explicitly including that. Can you please copy the exact error message you’re getting?

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! 🙂

    Thread Starter ogapmath

    (@ogapmath)

    Hey Dan,

    First, when I go to Settings>Doc Gallery>Thumbnail Generation and then select Google Drive Viewer then save, the selection becomes unchecked.

    The error message I’m getting is: [fancy=true is not a valid term name in 0.

    Thanks,
    Jackie

    Plugin Author Dan Rossiter

    (@danrossiter)

    Jackie,

    Are you including these (“[” & “]”) around your fancy attribute? Those are a notation to indicate that the attribute is optional, but should not be included in your actual shortcode. Your shortcode should be something along the lines of this: [dg fancy=true ids=42,12,10]

    After saving the change to thumbnail generators, are you getting any kind of error message?

    Other question is which version of WordPress and Document Gallery are you using?

    -Dan

    Thread Starter ogapmath

    (@ogapmath)

    Hi Dan,

    So sorry for the delayed response. I am not using the brackets (truthfully I have tried both ways and neither works).

    I’m not getting any error messages. I just save the changes and then the top of the page says “settings have been saved” or whatever the standard message is. But when I scroll down the checkmark by Google Viewer is gone.

    I’m using the latest version of Doc Gallery and haven’t upgraded yet to the latest WordPress because we are currently registering users and I can’t do an overhaul right now.

    Thanks!

    Plugin Author Dan Rossiter

    (@danrossiter)

    Jackie,

    I assume the version of WP you are using is at least greater than 3.6?

    Unfortunately the next step to debug is more involved. We’re going to need to pull a value directly out of the database.

    The query we need to run is this:

    SELECT option_value FROM wp_options WHERE option_name = 'document_gallery'
    (Note that “wp_options” could have a prefix other than “wp_” depending on your config settings.)

    Without knowing how your server is setup, unfortunately I can’t be a whole lot of help in telling you how to get to a console where you will be able to run that query.

    If you run into issues, please let me know and I will do what I can to help further.

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘fancy shortcode not working for me’ is closed to new replies.