Jump to content
Sign in to follow this  
gisela01

Related content plugin. PlatformPro

Recommended Posts

gisela01

Hi. I just installed the "Related" plugin. They say:

"To display the related posts, simply add:
<?php echo $related->show(get_the_ID()); ?>

to your template, inside the WordPress loop"

I'm new at this and haven't found a way to do this... Any help please? Thanks

Share this post


Link to post
Share on other sites
ricardo

Hi Gisela! First know what the loop is so you can recognize it in the template.postloop.php file. http://codex.wordpress.org/The_Loop Then copy that file from platformpro to platformbase and add that php code where ever you want *inside* the loop. Ricardo

Share this post


Link to post
Share on other sites
gisela01

Hi Ricardo. Thanks for your answer. I recognized the loop and identified the Post and Page Content. I placed the line

<?php echo $related->show(get_the_ID()); ?>

but the single post page wont display what I expected. In fact, once I paste the code line, The right columns, the share icons, comments, etc. disappear Thanks again

Share this post


Link to post
Share on other sites
cmunns

Do you have a link..you may be breaking the html of the page?

Share this post


Link to post
Share on other sites
gisela01

Hi Adam, I had to edit the plugin code a bit. This is what we placed inside the loop (both posts lists and single post page) and it works great

 <?php
	 the_excerpt();
	 global $related;
	 echo $related->show(get_the_ID());
	 ?>  

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×