hello everyone, just a quickie.
i have a <ul> of bookmarking icons on my new theme. when clicked they all use a function i created to get post short url
here it is
function ext_theme_short_url(){global $post; echo get_bloginfo('url')."/?p=".$post->ID;}
now, should i add this to each href for each icon? like this
<?php echo ext_theme_short_url(); ?>
or should i call it like this?
$link = echo ext_theme_short_url();
and then add
<?php echo $link; ?>
to each href.
i guess what i am asking is will this reduce the mysql lookup from many requests to 1?