So I'm using the code below to include the latest news on my home page but it's not formatted. I have a couple lists and spaces between my paragraphs but it's displaying all strung together. When I view the news page by itself it's formatted but when included it's not.
Any idea what I'm missing?
Thanks,
Mike
All the CSS IS there. My whole site is custom and working fine. The zengallery and other zenpage pages are fully integrated and looking great. This is the third custom integrated site I've done - styling is not the problem. As I said when this page is viewed on it's own it's styled just fine. Just when included into the home page is it not styled. Everything else on that page is styled fine as well...
I designed the site then I want to incorporate zenphoto and zenpage into my design. I had everything integrated except for getting a news article on the home page. After searching I found the above code which did what I wanted but there was no formatting.
I've since changed the way I did it by simply "including" pages.php. I didn't try that at first because I didn't think it would be that easy. lol. It's all done now and looking awesome. All the content is zenpage and the gallery is zenphoto...I'm very happy with the way it worked out.
Just need to go over the content and re-organize the gallery...
The getLatestNews gets just the content - if you want to print it with formatting, you may be looking for printLatestNews instead, unless you're making your own function to format the data from getLatestNews.