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 4023268
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:34:40+00:00 2026-05-20T10:34:40+00:00

I have a set of code that modifies the native wordpress gallery: /* Open

  • 0

I have a set of code that modifies the native wordpress gallery:

/* Open the element to wrap the image. */
    $output .= "\n\t\t\t\t\t\t<{$icontag} class='gallery-icon'>";

    /* Add the image. */
    $image = ( ( isset( $attr['link'] ) && 'file' == $attr['link'] ) ? wp_get_attachment_link( $id, $size, false, false ) : wp_get_attachment_link( $id, $size, true, false ) );
    $output .= apply_filters( 'cleaner_gallery_image', $image, $id, $attr, $cleaner_gallery_instance );

    /* Close the image wrapper. */
    $output .= "</{$icontag}>";

The outputs something like this:

<dt class="gallery-icon">
     <a title="ambrosia (4)" href="URL">
        <img width="150" height="93" title="ambrosia (4)" alt="ambrosia (4)" class="attachment-thumbnail" src="URL">
     </a>
</dt>

I need to wrap the img src URL in a thumb.php resizer like this:

HOMEURL/thumb.php?src=IMGURL&w=234&h=250&zc=1&q=90

Is this possible? How would I do it?

Thanks,
Zeem

  • 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-20T10:34:41+00:00Added an answer on May 20, 2026 at 10:34 am

    If your image resize script is on the same server as the image itself, i would rather pass only the image name/id/rel.path instead of the whole URL. Giving a whole url would allow anybody to use your script as image resizer…

    About how to modify th html itself, i suggest you look into that wp_get_attachment_link() function and see what it does 🙂

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

Sidebar

Related Questions

I have some code that produces a set of primary key values that I
I have this jQuery datepicker code that initially set the minDate of the datepicker.
I have the following code that seems like it should set my insertParameter but
I have a problem with this is code: Set oXmlHTTP = CreateObject(Microsoft.XMLHTTP) oXmlHTTP.Open POST,
I have the following bit of code that modifies an observable collection of 'screens'
I have a class that modifies data via some extension methods. In order to
I have code that manipulates binary files using fstream with the binary flag set
I currently have my code set to disable the submit button when the field
I am having a bit of difficulty with this current code I have set
Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it

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.