Would be really great if you could actually help me on this one. I want to use the_content in the loop, but when i do, formatting is lost etc. I know from our previous conversation that it's because it's pulling the date direct from the db, so how to get around this?
This plug is cool, but its too basic with just links, i want to add extra info…
8:08 am September 11, 2009
Ade
Admin
posts 1140
2
Can you explain what you mean by "I want to use the_content in the loop". Frankly, I don't understand your question.
Post edited 6:17 am – September 11, 2009 by neologan
the code under: // all other posts except the current post
i can use:
' . $findpost->post_content . '
We both know the issues with using this method, it brabs it from the post table in db and will not contain any formatting or p tags.
I was wondering if you could help, if possible, so that i can get the ost content to show with all formatting in place, which i believe is the wordpress tag the_content.
I know this cannot be done without some modification to the code, but i do know it's possible as YARPP (yet another related post plugin) does it.
6:23 pm September 11, 2009
Ade
Admin
posts 1140
4
You could try something like this:
$content = $findpost->post_content;
$content = appy_filters('the_content', $content);
You will probably have to experiment a bit with how to integrate this with the existing code.
Developing plugins for the community represents a considerable investment of my time and energy. If you have found these plugins useful, please consider making a donation to help support future development. Your support will be much appreciated. Thank you!