Smarty Plugins Working in WP!

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}

One thought on “Smarty Plugins Working in WP!

Leave a Reply

%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close