Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

use the_content in the loop

Topic Locked
UserPost

5:48 am
September 11, 2009


neologan

Member

posts 17

1

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.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

8:16 am
September 11, 2009


neologan

Member

posts 17

3

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.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

9:45 pm
September 11, 2009


neologan

Member

posts 17

5

and then add:

<?php $content ?>

Not sure how to call it now :(

9:48 pm
September 11, 2009


neologan

Member

posts 17

6

ah, it would be:

' . $content . '

And this did work.

Thanks for your help in getting this to work, i know you are busy, was really appreciated.