Pulling My Hair Out with the_content – Please Help
-
Ok, so I’ve been running my podcast website on WordPress for about 3 years now. It’s a pretty large website. I’ve been using Podpress for that entire time. However, there is VERY LITTLE support for it these days. I can’t just switch at this point, as I have hundreds of episodes currently.
With that said, I’m having a problem with Podpress interacting with the_content()
Here is what I’m trying to do. I want to make my category listings display a static page before it displays the posts in the category. Easy enough. There is a Category Page plugin. I used it, but what was happening is that after it displayed the Page Content, It would take the Podpress insert for the first post in that category, and attach it to the page, instead of the post.
So, I thought it was probably a bad interaction between the two plugins. So I pieced together a home-brew version. It looks for a page of a certain name, and if it exists, it pulls it’s post_content. That works fine. Except, post_content strips HTML from the content when it displays it. So I have no line breaks in that form.
The answer is to display the_content, or to apply_filters(‘the_content’, $page->post_content). However, as soon as I do either one of those, boom, the podpress content is right back into my page, and out of my first post.
So, my question is this: Is there anyway to display a formatted version of a post/page’s content, without using the_content either as a call, or a filter?
If the answer to that is no, then is there any chance someone could explain to me why the podpress content is being pulled when I am calling the page’s the_content, rather than staying with the first post like it should?
At this point, I’m literally running out of options. I’ve tried to get help from the plugins forum, but nobody will answer at all. I can’t give up on podpress, as it is the backbone of my website. But I can’t come up with any other solution that doesn’t use the un-formatted text.
Please, any help that can be given would be REALLY appreciated. I’ve been fighting this off and on for months now. I just can’t find an answer. For an example of what I am talking about, please see:
https://www.geekshow.us/newdev/category/content/podcasts/buffcast/
Notice the Audio players. Every one of them is right, except the first one gets moved up to the page content, rather than the post it comes from.
- The topic ‘Pulling My Hair Out with the_content – Please Help’ is closed to new replies.