Screenshots on plugin page taken old [closed]

Reason was simple: “wp-plugin-in-github” tool has not any delete assets functions. So in git repo there were no screenshot-1.png, but in svn repo — it was. See: https://github.com/sudar/wp-plugin-in-github/blob/e5a004052342cbdfc5bd7fbcb844fffce8695f91/deploy-plugin.sh#L231 Workaround to work: find $SVNPATH_ASSETS -type f -not -path ‘*.svn*’ -delete cp $GITPATH/$ASSETS_DIR/* $SVNPATH_ASSETS # copy assets */ cd $SVNPATH_ASSETS # Switch to assets directory svn status … Read more

HTTP error when uploading an image

I’ve had the same problem and found it was due to the upload file size set for the server (in my case 2mb). There is another setting which escapes me at this point, but is basically a limit on the amount of space that can be used to process uploaded images…which WordPress does when it … Read more

Logo on the tab

I believe your question is about creating a “favicon”. This is a small image that is served up by your site and appears on each browser tab you may have opened. The WordPress Codex lists a convenient step-by-step on creating a favicon. http://codex.wordpress.org/Creating_a_Favicon Creating a Favicon A favicon can be created using any graphics/image editing … Read more

Redirect Image Url to a page via htaccess

You’ll need to add a rewrite rule to your .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_REFERER} !/wp-admin/ [NC] RewriteRule ^wp-content/uploads/.+?\.(jpe?g|png|gif|svg)$ /my-page [R=301,L] </IfModule> Add this after anything added by WordPress. You’ll need to replace /my-page with the slug of the page you’d like to redirect to.

Capitilize Alt/Title Tag in Image HTML, Reorder HTML Output

I’ll give you a partial answer. In your first function you may use ucwords() PHP function: $alttitle = ucwords( str_replace( ‘-‘, ‘ ‘, $alt ) ); Second task is more complicated. I don’t have a ready solution for you but the direction should be to extract attributes and values from HTML (playing with preg_match()), store … Read more

Unrestricted height thumbnails

According to add_image_size() you can do something like that with width but I imagine it works the same with height: $width (int) (optional) The post thumbnail width in pixels. Set to 9999 to resize based on $height Default: 0 Really I think you would want to set it to something ridiculously high which 9999 should … Read more