limit media upload to once a day

You will need to create a meta field for users identifying that user when he already uploaded something in that day (or in the last 24 hours). After you do that, you will need to create a function to trigger in some upload action, like wp_handle_upload_prefilter or wp_handle_upload to check if user can upload something … Read more

Dynamically determine the width and height of a image file to be cropped & uploaded AFTER form submission given fixed aspect ratio

Here is my resolution: Download and unzip JCrop and unzip jquery.Jcrop.min.js & jquery.Jcrop.css to the js & css sub-directory respectively under the theme template directory. Place the following code in header.php just before </head> (you need to comment out the first line if you’ve already include the jquery.min.js in the other place): <script src=”https://wordpress.stackexchange.com/questions/209358/<?php echo … Read more

Upload and attach to a post multiple image files [closed]

You’ll need to add brackets to the name of your multiple input form element for PHP to interpret it as an array. <input type=”file” multiple name=”thumbnail[]” id=”thumbnail”> You’ll then get an array named ‘thumbnail’ with 5 arrays within it. See this comment on php.net for a breakdown of the structure. Edit: Notice the difference in … Read more

How to make picture appear on wordpress site shared link? [closed]

You need to use Open Graph meta markup to have this type of sharing on Facebook .There are so many plugins available in the WordPress repository for this. For example: <meta property=”og:url” content=”http://sharing/url” /> <meta property=”og:type” content=”article” /> <meta property=”og:title” content=”Title of the post” /> <meta property=”og:description” content=”Description or excerpt of the post” /> <meta … Read more

Setting up a HIPAA secured form / file upload

Assuming a developer that is/stays current on relevant security issues creates/manages the site, and a HIPAA compliant (per the regulations) hosting environment is used, forms, uploading, etc. is fine. If you proceed, note that compliance is more than technical. Policies/procedures have to be in place for using/managing the solution as well as incorporating the solution … Read more

What is the URL pattern for image thumbnails + sizes?

In general the format is: originalfilename-300×203.jpg, where 300×203 are the dimensions of the thumbnail. However, there are a few things that mean you can’t rely on this: – if the user has edited the file within WP, the filename will change – if the original image is smaller than the dimensions you specify, that thumbnail … Read more