Difference between revisions of "Wordpress"
From Wikicliki
| Line 21: | Line 21: | ||
} | } | ||
?></pre> | ?></pre> | ||
| + | |||
| + | <pre><?php if ( get_post_meta($post->ID, 'thumb', true) ) : ?> | ||
| + | <a href="<?php the_permalink() ?>" rel="bookmark"> | ||
| + | <img class="thumb" src="<?php echo get_post_meta($post->ID, 'thumb', true) ?>" alt="<?php the_title(); ?>" /> | ||
| + | </a> | ||
| + | <?php endif; ?></pre> | ||
Revision as of 13:24, 20 December 2012
- http://fthrwght.com/autofocus/
- http://shakenandstirredweb.com/331/introducing-our-first-free-wordpress-theme-shaken-grid
- http://www.frogsthemes.com/themes/wordpress/foliogrid-pro/
- http://wpshower.com/free-wordpress-themes/imbalance-free-wordpress-theme/
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();
// ...
}
?>
<?php if ( get_post_meta($post->ID, 'thumb', true) ) : ?>
<a href="<?php the_permalink() ?>" rel="bookmark">
<img class="thumb" src="<?php echo get_post_meta($post->ID, 'thumb', true) ?>" alt="<?php the_title(); ?>" />
</a>
<?php endif; ?>