thumbnail gallery
-
images in my blog are going to be managed by a gallery and Top10 seems to fail to find the thumbnail when the main image is not assigned to an entry.
is there a way to force Top10 to chose the first image of a gallery without having to assign a preferred image in every post?
-
hi,
Top 10 should typically pick up the the first child image that has been uploaded.
What are you seeing when you have have Top 10 on the gallery posts?
thanks for your reply.
the web design is still being implemented.
the post html shows something like this:
[gallery ids="9685,9686,9687,9688,9689,9690,9691,9768"]
the published post show the first image -9685- without problem.
the Top 10 instead of the 9685 thumbnail shows a Top10 default image.if I select the 9685 image as my post preferred image, Top 10 shows the 9685 thumbnail.
a lot of old entries have being imported from blogger -so they have no gallery in them- and Top 10 shows without problem as thumbnail the post first image.
Hi,
I think it might be because the gallery thumbnails might not being “linked” to the post.
Can you check under Media > Library, if the image with the ID 9685 above has a post in the column “Uploaded to”?
I could not truly say.
do you mean any of these boxes?:
https://lh3.googleusercontent.com/-zI44QYiT8gY/VYvUYr07HyI/AAAAAAACAmM/dBRcFL0jT8s/s1600/Sin%252520t%2525C3%2525ADtulo-2.pngin both the url diplayed is an image: http://afasiaarchzine.com/wp-content/uploads/2015/06/RCR-.-Beaudouin-.-Lorrain-Museum-.-Nancy-1.jpg
Hi, I meant in this screen:
https://codex.ww.wp.xz.cn/Media_Library_Screen
You need to change the view to the Column view by hitting the greyed out icon just below Media Library
There might be another alternative of enforcing shortcodes, but I’d like to see if we can resolve this first.
it says:
Image converted using ifftoany
RCR-.-Beaudouin-.-Lorrain-Museum-.-Nancy-1.jpg
afasia (Sin adjuntar)
Adjuntar
0 15/06/2015which means: “no attach” in the “uploaded to” box and it gives an option to attach.
Hi,
Are you in a position to edit top-10.php and modify the below line:
https://github.com/ajaydsouza/top-10/blob/master/top-10.php#L1549
preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', do_shortcode( $result->post_content ), $matches );well, I’m not really in fact, because I don’t have any idea about code or php, but your explanation was quite clear, I have modified the above line, and the only thumbnail missing in Top-10 is now displayed correctly.
in a month or so the web should be working and then I could say if everything is OK but right now it seems to be.
thanks a lot, Ajay.
You’re welcome š
another thing, that I have just noticed.
I’ve been making some tests this morning and in all them the thumbnail is displayed but in some appears pixelated.
You will need need to most likely regenerate the thumbnails. I suggest using something lik OTF Regenerate thumbnails which does this on the fly as needed
Ajay
thanks, Ajay.
the weird thing is that some thumbails seem to be blurred and some other don’t.
I will try the plug-in.thanks again.
Do let me know the results. Those that are not blurred are usually because they happen to be in the right size. While the blurred ones are because they are not.
thanks, Ajay.
the thumbnails are 100×100 and the images are always bigger so I don’t know what’s happening. I have made some tests and in some posts the thumbnails are blurred and some don’t, so I can’t have a conclusion.
someone is working with the code to translate the design from blogger to wordpress so I don’t know if this can affect in any sense.
I don’t think I can have a conclusion before a few weeks but once I know if the failure is temporary or permanent, I’ll let you know.
Thanks that makes sense. As I mentioned keep OTF Regenerate plugins running. As this will ensure you’re always getting the right image in theory.
Also, make sure you’re using as high quality images and possible and letting WordPress do the resizing.I’ll mark this resolved for now, but let me know in a few weeks if you haven’t solved it and we always revert the status.
The topic ‘thumbnail gallery’ is closed to new replies.