admin管理员组文章数量:1122846
I am moving content from an old site based on Wordpress 4.9 to a new website based on the current release and PHP 8. I have moved all the content - meaning posts, pages, media, and so forth - using Updraft and have spotted an interesting issue. Many of the posts have embedded galleries in them that are based on the builtin gallery feature of WP, nothing special.
When I create a new gallery in a post now, the anchor of the thumbnail is pointing to the media file, so for example, the link looks like mysite/media/image123.jpg
. When I click that, the image opens fine. However, galleries in the imported posts have links to the image that look like this: mysite/image123
, so some kind of permalink. When I click on a thumbnail with this link, instead of opening the image, it opens a separate page with nothing but the image on it - and only when I click on that, I get to the full size image.
What should I do to make the old galleries link directly to the media files? There is quite a lot of content, so I would like to avoid having to fix it manually in all posts.
本文标签:
版权声明:本文标题:permalinks - After moving content to a new site, gallery thumbnails are not pointing to media files 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309857a1934171.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论