Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7526723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:54:41+00:00 2026-05-30T03:54:41+00:00

Is it possible to ask WordPress to look in all ‘uploads’ folder and not

  • 0

Is it possible to ask WordPress to look in all ‘uploads’ folder and not just a specific one? As you’ll see from the script below, it’s looking for images with the same name and a specific prefix…

'wp-content/uploads/2012/01/'

I want it to be something like…

'wp-content/uploads/*/*/'

as the way it is, it’s not working for anything else, for example if the image file has the prefix…

'wp-content/uploads/2012/02/'

My script is…

$(document).ready(function(){


$(".gigthumb").each(function() {
        var a = $(this).parent();
        a.attr("href", a.prev().attr("href"));
    });



$('img.gigthumb').each(function(){
var foo = $(this).parent().attr('href').split('/').pop();
$(this).attr('src','wp-content/uploads/2012/01/' + foo + '.jpg');
});


$('img.gigthumb').error(function() {
  $(this).attr('src','wp-content/plugins/gigpress/images/placeholder.gif');
});

Hope this makes sense. Quite difficult to explain the issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:54:43+00:00Added an answer on May 30, 2026 at 3:54 am

    Doing this would be very cumbersome and terribly slow. You would have to serve all the possible paths from server side, and then walk through them using Ajax requests or something. It’s not a good solution.

    The problem should be solvable more easily by changing the way WordPress organizes your uploads. The setting is in Settings -> Media:

    enter image description here

    I don’t know, however, what happens if you do this on an existing install that already has uploads. You may have to reorganize/re-upload all your posts’ content to be able to use this (I’m pretty sure WP won’t automatically re-organize.) Use at your own risk and make backups.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering if is it possible to ask mapper not to serialize certain fields
is it possible to ask parent for its refered collection_name based on one of
This is weird and probably not possible but I'll ask anyway. I'm making this
Is it possible for a webpage to popup a open folder dialog, ask the
Is it possible to ask Mercurial to show only the heads of one branch?
Is it possible to programatically ask Mac OS X not to turn on the
[UPDATE] What I ask below just isn't possible. In which case, as my brain
I would like to know if it is possible to ask Android not to
I would just like to to ask if its possible to insert a jQuery
I suspect this is not possible under the current C++ standards but I'll ask

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.