dijon Posted March 9, 2008 Share Posted March 9, 2008 I'm trying to bring a permalink into a plugin's code (podpress_theme.php) and am having trouble... In podpress_theme.php, a variable called $podPressContent is populated with content and then displayed after the content on a wordpress post. I have tried to create a link that takes one to the entire post here: $podPressContent .= '<a href="'.the_permalink().'" title="Entire Post">Entire Post</a>'; However, something is wrong with my link as the display is correct, but url does not show up. Instead, the url (permalink) shows up elsewhere in the post as text. Any suggestions? Thanks for your time/help! Dijon Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted March 9, 2008 Share Posted March 9, 2008 Sounds just like a typo Maybe change $podPressContent .= '<a href="'.the_permalink().'" title="Entire Post">Entire Post[/url]'; To $podPressContent .= '<a href="'.the_permalink().'" title="Entire Post">Entire Post</a>'; Quote Link to comment Share on other sites More sharing options...
dijon Posted March 9, 2008 Author Share Posted March 9, 2008 thanks, but actually, i think the forum changed it from </a> to [/url] because i didn't put the code in code brackets. maybe more information is needed? john Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted March 9, 2008 Share Posted March 9, 2008 Oh OK In that case - how about the ; after permalink http://codex.wordpress.org/Template_Tags/the_permalink Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.