Problems to get post content to be used in theme PHP
-
Hello,
I’m quite sure that this is possible, but when I tried to check for the correct data I was simply unable to find it.
The problem I’m facing is the following.I’m building a pretty customized theme for a site and I must, at the same page, separate the posts by it’s sub-categories.
They are all at the same main category but the sub-categories ate different.So, it has to be something like this:
Category 3 (main)
Subcat1:
– Posts that belongs to Subcat1
Subcat2:
– Posts that belongs to Subcat2
Subcat3:
– Posts that belongs to Subcat3The problem is that the user must be able to change/delete/insert subcategories. So this must be make dynamically.
The idea I’ve had is to get all these datas with The WordPress Loop, store them in php arrays, do what I must and print the correctly. No big deal.
The problem lies with the post content. I must get the content and store them in a PHP array. If I use the $post[‘post_content’], I get the ENTIRE post content, when I want to get the content as it would be given by the the_content function. Which means that I want the post content until the “more” separaor.
Thanks for your help.
- The topic ‘Problems to get post content to be used in theme PHP’ is closed to new replies.