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
WPZoom: WordPress related Firefox Addons
Firefox is regarded as the best Web browser in terms of extensions. It has hundreds of add-ons, which can be...
cforms II now GPL compliant
Well, it was a long run, ok, only 24 hours when Mr. Seidel’s announced that he would pull the plug...
Goodbye to cforms II
If you are using the cforms II, you may want to head over to Mr. Seidel’s site for more info...
powered by WassUp
Recent Posts: Fully Net Worth . com
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 […]
Antonio Valentino King, who is better known by his stage name as 600 Breezy, is an American rapper and songwriter. He is also a member of the Black Disciples gang and has had some problems with the law in the past. As of 2019, 600Breezy net worth is estimated to be $700,000. He was born […]
Ke’Asha McClure, who is better known by her stage name as Queen Key is a rapper who made her breakthrough in 2016 with singles such as “Panic,” “Baked as a Pie,” and “Calling All Eaters.” She is known for her explicit songs and has recently released new projects called Eat My Pussy and Eat My […]