twistedtech
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: evaluate if next_posts_link() will return resultsWell 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
In reply to: evaluate if next_posts_link() will return resultsI 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
In reply to: evaluate if next_posts_link() will return resultsI 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
In reply to: Custom Fields Plugin?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
In reply to: evaluate if next_posts_link() will return resultsHave 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.