Not sure what the function parameter is supposed to do but in your link it should probably read echo(getitinarylink());
, i. e. you want to echo the returned result of the function call. You might not even need the $the_link
parameter in your function declaration, you only need it if you want to pass something to the function.