Difference between revisions of "Wordpress"

From Wikicliki
Jump to: navigation, search
Line 7: Line 7:
  
 
http://www.lucianmarica.com/stuff/geotagging-from-image-exif-data-in-wordpress/
 
http://www.lucianmarica.com/stuff/geotagging-from-image-exif-data-in-wordpress/
 +
 +
== Snippets ==
 +
 +
<pre><?php
 +
if ( in_category('fruit') ) {
 +
include 'single-fruit.php';
 +
} elseif ( in_category('vegetables') ) {
 +
include 'single-vegetables.php';
 +
} else {
 +
// Continue with normal Loop
 +
if ( have_posts() ) : while ( have_posts() ) : the_post();
 +
// ...
 +
}
 +
?></pre>

Revision as of 13:23, 20 December 2012

Geotagging

http://www.lucianmarica.com/stuff/geotagging-from-image-exif-data-in-wordpress/

Snippets

<?php
if ( in_category('fruit') ) {
	include 'single-fruit.php';
} elseif ( in_category('vegetables') ) {
	include 'single-vegetables.php';
} else {
	// Continue with normal Loop
	if ( have_posts() ) : while ( have_posts() ) : the_post();
	// ...
}
?>