You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a child theme of bootstrap, but have been having issues with image uploads. (They originally work, then suddenly refuses to upload or show old image uploads on the post/edit pages, although the media library continues to work)
Removing the following code from bootstraps functions (Actually the add_filter call to it) makes uploads/gallery work again, which has solved my current issues.
I don't however completely understand the purpose of the code, - can anyone tell me if disabling is likely to cause further problems, if there is a bug in the code here or what.
(I'm guessing this may be related to using Advanced Custom Fields to add images to category pages, as I think that's what caused it to suddenly break, but I reached my limits just in finding where the problem was.)
function bootstrapwp_enhanced_image_navigation($url)
{
global$post;
if (wp_attachment_is_image($post->ID)) {
$url = $url . '#main';
}
return$url;
The text was updated successfully, but these errors were encountered:
I'm developing a child theme of bootstrap, but have been having issues with image uploads. (They originally work, then suddenly refuses to upload or show old image uploads on the post/edit pages, although the media library continues to work)
Removing the following code from bootstraps functions (Actually the add_filter call to it) makes uploads/gallery work again, which has solved my current issues.
I don't however completely understand the purpose of the code, - can anyone tell me if disabling is likely to cause further problems, if there is a bug in the code here or what.
(I'm guessing this may be related to using Advanced Custom Fields to add images to category pages, as I think that's what caused it to suddenly break, but I reached my limits just in finding where the problem was.)
The text was updated successfully, but these errors were encountered: