Title: twistedtech's Replies | WordPress.org

---

# twistedtech

  [  ](https://wordpress.org/support/users/twistedtech/)

 *   [Profile](https://wordpress.org/support/users/twistedtech/)
 *   [Topics Started](https://wordpress.org/support/users/twistedtech/topics/)
 *   [Replies Created](https://wordpress.org/support/users/twistedtech/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/twistedtech/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/twistedtech/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/twistedtech/engagements/)
 *   [Favorites](https://wordpress.org/support/users/twistedtech/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [evaluate if next_posts_link() will return results](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/)
 *  [twistedtech](https://wordpress.org/support/users/twistedtech/)
 * (@twistedtech)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/#post-595851)
 * Well that looks like it would work. My thought was to just create a function 
   that would return true or false based on if there was a next or previous link,
   but I didn’t have time to work on it this weekend. Not sure what this week is
   going to be like at work so I may have a chance to hack something up over the
   next few days. I think it is doable with a single function and 20 line of code
   or less, but I need to setup a test blog first so I don’t have to mess around
   with my live one.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [evaluate if next_posts_link() will return results](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/)
 *  [twistedtech](https://wordpress.org/support/users/twistedtech/)
 * (@twistedtech)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/#post-595849)
 * I really think that a plug-in is overkill when a couple of custom functions included
   in your theme’s functions.php file could be used instead. Especially since this
   is such a theme specific thing.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [evaluate if next_posts_link() will return results](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/)
 *  [twistedtech](https://wordpress.org/support/users/twistedtech/)
 * (@twistedtech)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/#post-595847)
 * I don’t have time to work on it right now but I do think I can make a solution.
   I ended up changing my theme so that it wasn’t needed but I will try to whip 
   something up this weekend now that I know how to slap WP around a little better.
   If you don’t feel like waiting then just check out the code in ‘/wp-includes/
   link-template.php’. If you know some PHP it should be easy enough to create a
   custom function based off of the code they use in the previous_posts_link, next_post_link,
   and posts_nav_link functions.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Custom Fields Plugin?](https://wordpress.org/support/topic/custom-fields-plugin/)
 *  [twistedtech](https://wordpress.org/support/users/twistedtech/)
 * (@twistedtech)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-plugin/#post-618602)
 * This bit of code should do what you need:
 * `<?php echo get_post_meta($post->ID, 'field-name', true); ?>`
 * Just replace field-name with the name of the custom field you want to access.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [evaluate if next_posts_link() will return results](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/)
 *  [twistedtech](https://wordpress.org/support/users/twistedtech/)
 * (@twistedtech)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/evaluate-if-next_posts_link-will-return-results/#post-595821)
 * Have you had any luck finding a solution? I was wanting to do something similar
   but so far haven’t been able to figure out a solution. I have been trying to 
   figure out how to write a custom function to include in my themes functions.php
   file but so far it is no good.

Viewing 5 replies - 1 through 5 (of 5 total)