Support » Plugin: Related Items » [Plugin: Related Items] results location

  • Hi,

    First off, I would like to thank you for providing this plugin – does exactly what I need it to do functionality wise..

    On the other hand, I was wondering if you could give some insight on how to display the relationships in a place other than under the entry content. I want to put the relationships in a div outside of the entry-content as to style it appropriately. For instance…

    <div class="entry-content">
    <p>all my content</p>
    <p>where the related items normally gets displayed</p>
    </div> <!-- end entry-content -->
    <div class="related-items">
    <p>where i want the related items to be displayed</p>
    </div> <!-- end related-items -->

    Any advice?


Viewing 1 replies (of 1 total)
  • richardwardza


    Use the do_shortcode function in your theme:

    <div class="related-items">
    <p><?php echo do_shortcode('[related-items]'); ?></p>
    </div> <!-- end related-items -->
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Related Items] results location’ is closed to new replies.