When listing pages I have a bit of conditional code that reads a custom field and depending on its content will write out a class name (css). This class will then style the page link properly – this is exactly how the current_page_item class works.
here is my code which I wrote into a new function:
if ( get_post_custom_values($cur_page[‘id’],’new’) == ‘1’ )
$css_class .= ‘ newVenue’;
I have upgraded to wp2.5 and I see that template_functions_post.php is now post_template.php. I am uncertain how to procede to create the same functionality as in my pre wp2.5 site.
- The topic ‘wp2.5 upgrade… template_functions_post.php’ is closed to new replies.