New answers tagged

1

I am using standard WP galleries and have each image link to an attachment page where the image is displayed fullsize. To show PREVIOUS and NEXT links in order for the user to get to the corresponding images I found the functions previous_image_link and next_image_link useful. In my attachment.php I have the following lines to make WordPress display ...


1

I don't understand your code in full (how your foreach's actually fill your list item), but, as for the specific question, I think that the function you want is wp_get_attachment_image_src(); So (illustratively): $thumbnail_src = wp_get_attachment_image_src( $picture->ID ); $image->thumbnail_url = $thumbnail_src[0]; $full_src = ...


1

Well, I found not an answer, but a workaround for this question. In the_mx_limited_gallery function, I added a negated is_single check around most of the contents of the function, so basically the limited posts and custom code show only if you are on a page other than a single post. This isn't how I originally intended, but it works for the time being. ...



Top 50 recent answers are included