wonderm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Thumbnails Not Showing in AdminThanks Evan. I’m afraid chaning the size is not an option as we have over 350,000 photos. By having a different size we’ll create another 350k files which we don’t need.
Forum: Fixing WordPress
In reply to: Sort by Custom Post & DateThank you. The function doesn’t sort out the date. I have this function currenlty but it is slow:
add_filter('pre_get_posts', 'sort_my_archive'); function sort_my_archive($q) { if ($q->is_tax || $q->is_archive) { add_filter( 'posts_orderby', 'orderby_bad_car' ); } return $q; } function orderby_bad_car( $order ) { $order = "(SELECT meta_value FROM wp_postmeta WHERE meta_key = 'wpcf-bad-car' AND post_id = wp_posts.ID) ASC, wp_posts.post_date desc"; return $order; }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Plugins
In reply to: [Rename Media Files: Improve Your WordPress SEO] Change filename to Post IDHi Karzin, just wanted to know if you had any more thoughts or feedback for us regarding this matter?
Forum: Requests and Feedback
In reply to: Safeguard Original ImagesI wish to keep the originals untouched, the future we may change the logo or watermark.
Forum: Plugins
In reply to: [Rename Media Files: Improve Your WordPress SEO] Change filename to Post IDHi Karzin,
Would $50 donation get it done fast?
Fais
Forum: Plugins
In reply to: [Rename Media Files: Improve Your WordPress SEO] Change filename to Post IDHi Karzin,
I am happy to donate, when you be able to make the change we need? If it is months or weeks, then I will have to pay someone else to write one for me. We need one within 10 days at the latest.
We are going live soon and need it done before.
Thank you for your effort.
Fais
Forum: Plugins
In reply to: [Rename Media Files: Improve Your WordPress SEO] Change filename to Post IDHi Karzin,
Thank you for getting back to us. If I sent you a small donation, can this be done by the end of this week?
Thanks
Fais
Forum: Requests and Feedback
In reply to: Safeguard Original ImagesI have removed links to the original image in the Theme. Only other sizes are shown in the site with a watermark.
The original doesn’t have watermarks, therefore i need to ensure no one can access it via the URL.
Forum: Fixing WordPress
In reply to: Rename attachment filenames to "attachment ID" on uploadHello,
I found this code on the net, how can this be changed to rename the files to attachment ID?
Thanks
add_action(‘add_attachment’, ‘rename_attacment’);
function rename_attacment($post_ID){$post = get_post($post_ID);
$file = get_attached_file($post_ID);
$path = pathinfo($file);
//dirname = File Path
//basename = Filename.Extension
//extension = Extension
//filename = Filename$newfilename = “NEW FILE NAME HERE”;
$newfile = $path[‘dirname’].”/”.$newfilename.”.”.$path[‘extension’];rename($file, $newfile);
update_attached_file( $post_ID, $newfile );}
Forum: Plugins
In reply to: [Rename Media Files: Improve Your WordPress SEO] Change filename to Post IDHi Karzin, any feedback would be appericated.
Forum: Requests and Feedback
In reply to: Safeguard Original ImagesWhen an image is uploaded, the original is uploaded in the same directory as the one with the different sizes.
So maybe a plugin can have all the original in e.g.
wp-contents/uploads_originals/ {or a folder you specify so no one would know}the rest of the sizes are in the normal directory
wp-contents/uploads/Forum: Requests and Feedback
In reply to: Safeguard Original Imagese.g.
wp-contents/upload/image.jpg would not existonly thumbnails would exist
wp-contents/upload/image-300×200.jpg would existForum: Plugins
In reply to: [Thumbnail Upscale] Upscale imageskhromov, that works perfectly and thank you for your fast support.
Forum: Plugins
In reply to: [Rename Media Files: Improve Your WordPress SEO] Change filename to Post IDHi Karzin, any development on this?
Forum: Plugins
In reply to: [Rename Media Files: Improve Your WordPress SEO] Change filename to Post IDHi Karzin,
Just wondering if you had any more thought on this?
Thank youFais