With that said, I’d like to say I am using this snippet for a new theme I am building.
I want to pull a custom field from the “next” & “previous” post. So I used the following to do so:
<?php $previous_post = get_previous_post(); $next_post = get_next_post(); $image_prev = get_post_meta( $previous_post->ID, 'image', $single = true); $image_next = get_post_meta( $next_post->ID, 'image', $single = true); ?>
Simple. This is how I put it to use:
<?php if ( $image_prev != '' ) : ?> <img src="<?php echo FROSTY_SCRIPTS ?>/thumb.php?src=<?php echo $image_prev; ?>&h=50&w=169&zc=1&q=80" alt="" /> <?php endif; ?>
Random Search Terms
Sam Bauers on bbPress [video]
As mentioned in a previous post, I was able to record about 85% of the WordCampDev topic bbPress.
The actually release of WordPress 2.8 announced
The WordPress development blog has put a date on the release of 2.8, plus some notes.
Ben Dunkle on designing icons for WordPress [video]
I know many people attendedWordCamp 2009, in fact I believe there were 700 plus attendees. Well not every one showed...
powered by WassUp
Recent Posts: Fully Net Worth . com
Kieran Hayler is an actor who has appeared in Argumental, Loose Women and All-Star Family Fortunes. He was also a stripper and was associated as an entertainer with Adonis Cabaret Hen party Nights in London. As of 2019, Kieran Hayler net worth is estimated to be around £200,000. Hayler was born on March 22, 1987, […]
Tyree Cinque Simmons, who is better known as DJ Drama, is an American DJ and record executive producer who is the co-founder of Generation Now that includes top artists such as Lil Uzi Vert and Jack Harlow. As of 2019, DJ Drama net worth is estimated to be around $12 million. Simmons was born on […]
David Dobrik’s Net Worth: Know Everything About Him In recent years, we have seen the rise of many YouTubers. Ever since the time the market started booming with new YouTubers, this new way of entertaining people has come to the limelight. Speaking of popular YouTubers, we simply cannot miss out on David Dobrik. He is […]