Použití meta_query pro uživatelský typ příspěvků

WordPress 3.1 has made querying posts by postmeta values significantly simpler. With “meta_query” parameter, you can query for posts based on numerous postmeta values.

You have a custom post type called “product” that allows you to manage your T-shirt inventory. Upon saving each product, you enter custom field values for “price”, “size”, and “sex”. You want to create a page that only displays size “S” shirts for “men” that are under “$15.00″ and you want to order these posts by price, from lowest to highest.
In order to query for these products, you can use “meta_query”.


$args = array(
	'post_type' => 'product',
	'meta_query' => array(
		array(
			'key' => 'price',
			'value' => '15.00',
			'compare' => '<',
			'type' => 'NUMERIC'
		),
		array(
			'key' => 'size',
			'value' => 'S',
			'compare' => '=',
			'type' => 'CHAR'
		),
		array(
			'key' => 'sex',
			'value' => 'men',
			'compare' => '=',
			'type' => 'NUMERIC'
		)
	),
	'meta_key' => 'price',
	'orderby' => 'meta_value',
	'order' => 'ASC'
 );
$query = new WP_Query( $args );

Zdroj »

Vložení vlastního videa

Video.js – HTML5 Video Player for WordPress
https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/installation/

A video plugin for WordPress built on the Video.js HTML5 video player library. Allows you to embed video in your post or page using HTML5 with Flash fallback support for non-HTML5 browsers.
Responzivní, umožňuje vložit vlastní obrázek. Pro vlastní videa i videa z YT apod.

JW Player
http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/

JW Player for WordPress makes it extremely easy to deliver Flash and HTML5 video through your WordPress website.

Flash Video Player
http://wordpress.org/extend/plugins/flash-video-player/

The flash video plugin for WordPress allows the addition of video (and other media) to a WordPress website using standards-compliant markup and the leading open source software (Jeroen Wijering’s FLV Player and Geoff Stearns‘ SWFObject Javascript Library).

Přejmenování obrázků a souborů v knihovně médií

Media File Renamer
http://wordpress.org/extend/plugins/media-file-renamer/

This plugins allows you to rename physically the media files by updating their titles. It also updates theirs links in the posts automatically.

With this plugin, by updating the name of the image / media, you will also:

– rename physically the filename
– modify the guid of the media
– update all the references to that media in the associated post if there is any (img, src, url…)

Personalizace odběru RSS kanálu

Pro pohodlné čtení nových článků na internetu můžete používat RSS čtečky. S nimi se nemusíte proklikávat obsáhlým seznamem stránek, abyste se podívali, co je nového. Můžete tak pohodlně číst různé články, aniž byste nad jejich hledáním ztráceli příliš mnoho času. Dnes už mohou jejich funkci částečně nahradit sociální sítě jako Google plus nebo Facebook, ale […]