Serveer statische bestanden via een subdomein

Standaard worden bestanden geupload in de map /wp-content/uploads/. Als de instelling “Organize my uploads into month- and year-based folders” is ingesteld dan worden deze bestanden in de map /wp-content/uploads/2012/04 geplaatst.

WordPress stuurt standaard een aantal cookies mee. Alle statische bestanden worden ook met deze cookie aangevuld waardoor er extra netwerkverkeer wordt gegenereerd. Dit kan heel eenvoudig voorkomen worden. Dit wordt hieronder uitgelegd zonder dieper op de technische configuratie in te gaan.

Benodigdheden:

Ga naar Settings → Media

Daar vind je de volgende twee tekstvelden

  • Store uploads in this folder
  • Full URL path to files

Geef bij  ”Store uploads in this folder” het volledige pad op van de map die gebruikt wordt voor het subdomein. (voorbeeld: /home/gebruiker/static.mijnsite.nl/ | Let op: de laatste / deze moet er staan!)

Geef bij Full URL path to files de URL op waar de bezoeker de bestanden kan vinden. (Voorbeeld: http://static.mijnsite.nl | Hier moet geen / staan op het einde)

Klik op Save Changes

Vanaf nu worden alle bestanden in de map /home/gebruiker/static.mijnsite.nl/ geplaatst. Bezoekers kunnen deze bestanden bereiken via http://static.mijnsite.nl.

Jetpack 1.2.3 uitgebracht

Tegelijk met het uitbrengen van WordPress 3.4 Beta 1 is ook Jetpack 1.2.3 uitgebracht.

De veranderingen ten opzichte van versie 1.2.2 zijn:

  • Enhancement: Twitter Widget: Expand t.co URLs
  • Bug Fix: Various PHP Notices.
  • Bug Fix: WordPress Deprecated add_contextual_help() notices
  • Bug Fix: Don’t display unimportant DB errors when processing Jetpack nonces
  • Bug Fix: Correctly sync data during certain MultiSite cases.
  • Bug Fix: Stats: Allow sparkline img to load even when there is a DB upgrade.
  • Bug Fix: Stats: Replace “loading title” with post title regardless of type and status.
  • Bug Fix: Stats: Avoid edge case infinite redirect for show_on_front=page sites where the home_url() conatins uppercase letters.
  • Bug Fix: Subscriptions: Don’t send subscriptions if the feature is turned off in Jetpack.
  • Bug Fix: Subscriptions: Fix pagination of subscribers.
  • Bug Fix: Subscriptions: Sync data about categories/tags as well to improve subscription emails.
  • Bug Fix: Subscriptions: Better styling for the subscription success message.
  • Bug Fix: Shortcodes: Support for multiple Google Maps in one post. Support for all Google Maps URLs.
  • Bug Fix: Shortcodes: Improved support for youtu.be URLs
  • Bug Fix: Shortcodes: Improved Vimeo embeds.
  • Bug Fix: Sharing: Switch to the 20px version of Google’s +1 button for consistency.
  • Bug Fix: Sharing: Fix Google +1 button HTML validation issues.
  • Bug Fix: Sharing: Disable sharing buttons during preview.
  • Bug Fix: Spelling and Grammar: Properly handle proofreading settings.
  • Bug Fix: Spelling and Grammar: Don’t prevent post save when proofreading service is unavailable. 

WordPress 3.4 Beta 1

Op 5 april heeft WordPress de eerste beta uitgebracht van WordPress 3.4.

WordPress 3.4 heeft een aantal grondige wijzigingen onder de motorkop. De grootste hiervan is de gewijzigde Theme Customizer die nu een previewmode bevat.

De lijst met wijzigingen:

  • Theme Customizer with Previewer
  • Flexible Custom Header Sizes
  • Selecting Custom Header and Background Images from Media Library
  • Better experience searching for and choosing a theme

Andere veranderingen onder de motorkap:

  • New XML-RPC API for external and mobile applications
  • New API for registering theme support for custom headers and backgrounds
  • Performance improvements to WP_Query by splitting the query (Please test!)
  • Internationalization improvements (improved performance and locale support)
  • Performance and API improvements when working with lists of installed themes
  • Support for installing child themes from the WordPress Themes Directory

Download hier beta1 van WordPress 3.4

Geef links uit een link categorie weer

Met onderstaande stukje code is het een fluitje van een cent om alle links uit een bepaalde link-categorie weer te geven. De code bestaat uit 1 regel.

<ul>
<?php wp_list_bookmarks('title_li=&categorize=0&category_before=&category_after=&category_name=Links'); ?>
</ul>

Geef bij category_name de precieze naam van de link-categorie om alle links weer te geven.

WordPress 3.3 Beta 2

WordPress heeft op 20 oktober 2011 een tweede beta-versie van WordPress 3.3 uitgebracht. In deze tweede beta zijn de volgende verbeteringen / aanpassingen doorgevoerd:

  • Updated the Blue theme
  • Fixed IE7 and RTL support
  • Improved flyout menu styling and fixed several glitches
  • Finished the Pointers implementation
  • Landed the dashboard Welcome box for new installs
  • Improved contextual help styling
  • Tweaked the admin bar a little more
  • Fixed a bunch of bugs

Download hier WordPress 3.3 Beta 2

WordPress 3.2.1

WordPress 3.2.1 is uitgebracht. Deze versie brengt een aantal aanpassingen met zich mee voor het thema Twenty Eleven en de Admin interface.

De release notes van WordPress 3.2.1:

This maintenance release fixes a server incompatibility related to JSON that’s unfortunately affected some of you, as well as a few other fixes in the new dashboard design and the Twenty Eleven theme. If you’ve already updated to 3.2, then this update will be even faster than usual, thanks to the new feature in 3.2 that only updates files that have been changed, rather than replacing all the files in your installation.

Klik hier om WordPress 3.2.1 te downloaden