Argh, totally missed that one
get_permalink() is the right way to go, the
Internal URLs plugin also utilizes this function. Do you have a valid entry ID in the format 'entry210228-104517'?
When I started using the Internal URLs plugin, I wondered how to display the entry ID in my theme, so I wouldn't have to cut it out of admin area URLs.
PieroVDFN helped me out there, since then I have the {$id} as part of my entry admin controls. In my case in
fp-interface/sharedtpls/entryadminctrls.tpl:
{admincontrols}
<div class="admincontrols">
<span class="admin_id">{$id}</span> <a href="{$smarty.const.BLOG_BASEURL}admin.php?p=entry&entry={$id}&action=write"><img src="{$flatpress.themeurl}imgs/adminctrls/page_edit.png" alt="{$lang.main.btn_edit}" title="{$lang.main.btn_edit}" /></a> <a href="{$smarty.const.BLOG_BASEURL}admin.php?p=entry&entry={$id}&action=delete"><img src="{$flatpress.themeurl}imgs/adminctrls/page_delete.png" alt="{$lang.main.btn_delete}" title="{$lang.main.btn_delete}" /></a>
</div>
{/admincontrols}
To get the subject of an entry, use:
Code: Select all
$entryID = 'entry210228-104517';
$entry = entry_parse($entryID);
$subject = $entry ['subject'];
Let me know if that works for you!
All the best,
Arvid