Media URL slugs without uploads folder path

if you change permalink to post name in setting and attach the testimony.pdf in your post, you will get http://example.com/your_post/testimony.pdf, to get url of the textimony u can get with this code <?php $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => ‘any’, ‘post_parent’ => $post->ID, ‘exclude’ => get_post_thumbnail_id(), ); $attachments = get_posts( … Read more

File upload in WordPress

May I know what plugin you are using for Uploading the File? If you are using the current version of php & cPanel, And have your WordPress to the latest version, I recommend you using the CALDERA FORMS. Here is the Link: https://wordpress.org/plugins/caldera-forms/ So next time you create for example a Job Application form with … Read more

wp_update_attachment_metadata breaks after 10 files

It seems like it is a execution time problem. So I decreased it on the server & am doing the year folder now hardcoded one by one, write the executed images in a json file and only insert those who are not in there… and hope for the best.