WordPress.org

Forums

File Gallery
[resolved] Linking images to categories (5 posts)

  1. loopy53
    Member
    Posted 4 years ago #

    Is it possible to use this plugin to link the images to my categories? I have 27 categories on a static page and want each image to link to a respective category. On single images the link url button works but in a gallery they are wrapped into one unit. I'm still stumbling my way around wordpress which is why I need plugins!! Thanks in advance.

  2. Aesqe
    Member
    Plugin Author

    Posted 4 years ago #

    @loopy53: unfortunately, no. There's no way to tell File Gallery or WordPress how to do that automatically.

    But you could, for example, upload all images to a subdirectory within your theme's directory, each named after a category slug, and then use the get_categories() function to loop through categories and link each image to a category.

  3. loopy53
    Member
    Posted 4 years ago #

    @aesqe: For this page I would be linking to categories but I was also looking to build a gallery where the images would link to external sites as well. There has to be a way to turn the images into links while still inside the gallery.

  4. Aesqe
    Member
    Plugin Author

    Posted 4 years ago #

    well, there is, but you'll have to write your own template :)

    see here: how to create your own templates for file gallery

  5. loopy53
    Member
    Posted 4 years ago #

    Thanks, I'll give it a whirl!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • File Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic