How to Code a WordPress 3.0 Theme from Scratch

March 8th, 2011 by Keenan Payne | WordPress | 235 Comments

With the release of WordPress 3.0 came the implementation of many new features to the popular content management system. In this tutorial we are going to show you exactly how to code a WordPress 3.0 theme from the ground up to take advantage of all of these new features, as well as create a blogging-ready, minimal theme.

via How to Code a WordPress 3.0 Theme from Scratch.

Thumbnail Sizes

The default image sizes of WordPress are „thumbnail“ (and its „post-thumbnail“ and „thumb“ aliases), „medium“, „large“ and „full“ (the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you use these default sizes with the_post_thumbnail():

the_post_thumbnail(); // without parameter -> Thumbnail

the_post_thumbnail(‚thumbnail‘); // Thumbnail (default 150px x 150px max)

the_post_thumbnail(‚medium‘); // Medium resolution (default 300px x 300px max)

the_post_thumbnail(‚large‘); // Large resolution (default 640px x 640px max)

the_post_thumbnail(‚full‘); // Original image resolution (unmodified)

the_post_thumbnail( array(100,100) ); // Other resolutions

via Post Thumbnails « WordPress Codex.

Yes, this function registers new image sizes. To override default sizes you can use in functions.php something likeadd_theme_support’post-thumbnails‘;update_option’thumbnail_size_w‘, 150;update_option’thumbnail_size_h‘, 150;update_option’large_size_w‘, 500;

via WordPress › Support » how set default image size.

Neue Artikel automatisch bei Google+ veröffentlichenPubliziert am 22. März 2013 von htw Es ist problemlos möglich neue Artikel bzw. Beiträge bei sozialen Netzwerken wie Facebook oder Twitter automatisch zu veröffentlichen. Bei Google Plus verhält es sich etwas anders. Inhalte von Google+ lassen sich zwar bereitwillig in andere Netzwerke exportieren, der umgekehrte Weg, also in Richtung Google+, bestreitet sich schwierig. Im Folgenden ein HowTo, wodurch sich Artikel komfortabel bei Google+ veröffentlichen lassen.

via Neue Artikel automatisch bei Google+ veröffentlichen – How to WordPress.

Preload. If you want the video to load automatically as soon as the page loads (rather than waiting for the user to press the Play button), add a preload attribute. e.g., <video … preload> This doesn’t start playing the video automatically, it just loads it automatically. If you want to prevent the video from loading automatically, use the attribute preload=“none“. You might prefer that to save on bandwidth, if you don’t expect all your visitors to watch the video. If you don’t specify the preload attribute, what’s the default? Ask your browser maker. The default for preload is ON in Safari, but when you set it to none, the video placeholder on the page says „Loading…“ when you load the page, forever, even though it’s not really loading anything.

via The actual code to get video onto your website – & tags.

Gerade noch eine kleine Ergänzung:

Im Firefox wurde das WEBM-Video nicht geladen.

Das liegt daran, dass der Apache-Webserver den MIME-Type nicht mitsendet, sondern irgendwas mit „application/octet-stream“ oder so.

Erstellt einfach im Ordner, von wo die Videos ausgeliefert werden eine „.htaccess“-Datei mit folgendem Inhalt:

AddType video/webm .webm

Damit sollte das Video nun auch im Firefox korrekt laufen.

via Firefox: WEBM-Video wird nicht geladen? – Webentwicklungs-Forum – ActiveVB.