Yay! I got the “relatedstories” plugin working! The hardest bit was converting to use $wpdb
instead of the PHP MySQL interface. I love that I could call get_permalink
in post.html to figure out the story link:
{relatedstories}
{if $relatedstories}
<b>Related Stories</b> ({$relatedstoriesWords})
<ul>
{foreach from=$relatedstories key=key item=story}
<li> <a href="{get_permalink id=$story->ID}" >{$story->post_title}</a></li>
{/foreach}
</ul>
{/if}
🙂 (That’s one of my favs too.)