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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:40:07+00:00 2026-06-11T11:40:07+00:00

I’m putting the final touch on this photographer portfolio website built with WordPress. Here’s

  • 0

I’m putting the final touch on this photographer portfolio website built with WordPress.

Here’s the development link: http://dev.manifold.ws/maudearsenault/category/fashion/ (NSFW)

I’m using post categories for the main navigation (Fashion, Beauty, Lifestyle…).
On the category page, I figured out how to have two different views of the posts: the default view shows the pictures at 600px height in a horizontal scroll layout while the alternate view (which you can access by clicking the “view all” link) displays a grid of all the pictures in small thumbnail size.

I’m using the following code to display these small thumbnails:

<?php $images =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . $post->ID );
foreach( $images as $imageID => $imagePost )
echo wp_get_attachment_link($imageID, 'thumbnail', false); ?>

While it displays the thumbnails the way I want it to, I have 2 problems with this code:

  1. When I click on a thumbnail, it links to the picture file. I would like the thumbnails to link either to the category page with an anchor to the parent post OR to the post page if the first link isn’t possible.

  2. Right now, the thumbnail titles (or perhaps it’s the link titles) are the name of the attachment files. I would rather the title be the title of the picture that I set in WordPress.

I’ve been messing around trying to make this work, looking through the WordPress Codex but couldn’t make it work.

Any help would be appreciated.

Thanks!

-Thom

  • 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-06-11T11:40:08+00:00Added an answer on June 11, 2026 at 11:40 am

    I had this exact issue for one of my client projects awhile back, I have an answer for you but you’re not going to like it.

    All of this information is set in the backend within the media section.

    To change this information just update the details for the specific image like this.

    Example Image

    1. Title – Text displayed as a tooltip (when a mouse is hovered over the image).

    2. Alternate Text – The text displayed when the image is not available.

    3. Default Caption – Image caption displayed directly underneath the image.

    4. Description – Text displayed with the image in your dashboard and attachment pages on your blog.

    5. Link URL – The URL/web address to which the image will be linked.

      The None button will remove the link completely.

      The File URL button will link the image to its original, full-size version.

      The Attachment Post URL button will link the image to its attachment page.

      Or you can set to whatever you want it to link to.

    6. Alignment – The position of the image within your post or page. See this page on image alignment for more information.

    7. Size – The size of the image.

    Hope this helps!

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms

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.