Wordpress Displaying Blank Posts

by cma01
5 replies
  • WEB DESIGN
  • |
I'm in the process of converting a static site over to Wordpress. The static pages were the biggest mess of code I've ever seen. I cleaned up the pages as much as I could and then imported them into pages and posts in Wordpress.

However, there are some pages where the content will display on the backend, but nothing displays on the front end of the site. If I look at the source code, absolutely nothing in the post content is being output.

I've taken everything out of the post, used Dreamweaver to clean up the tags, pasted it back in the post and it still happens.

Has anyone had this happen before?
#blank #displaying #posts #wordpress
  • Profile picture of the author dialseo
    Check to make sure your index.php, page.php (for pages), single.php (for posts) all have the same php call for content. It maybe part of your template that's to blame.
    {{ DiscussionBoard.errors[3201148].message }}
    • Profile picture of the author tuldok
      Originally Posted by dialseo View Post

      Check to make sure your index.php, page.php (for pages), single.php (for posts) all have the same php call for content. It maybe part of your template that's to blame.
      check also your code on displaying posts
      {{ DiscussionBoard.errors[3208099].message }}
  • Profile picture of the author Istvan Horvath
    I cleaned up the pages as much as I could
    I suspect that's the issue... In cases like this the "As much as I could" approach is not always enough.
    You should have taken only the content, e.g. highlight-copy from the frontend of those pages - not the code!
    Take the content only and make it txt clean - then paste it into WP.
    Signature

    {{ DiscussionBoard.errors[3211527].message }}
  • Profile picture of the author anestbaik
    Originally Posted by cma01 View Post

    I'm in the process of converting a static site over to Wordpress. The static pages were the biggest mess of code I've ever seen. I cleaned up the pages as much as I could and then imported them into pages and posts in Wordpress.

    However, there are some pages where the content will display on the backend, but nothing displays on the front end of the site. If I look at the source code, absolutely nothing in the post content is being output.

    I've taken everything out of the post, used Dreamweaver to clean up the tags, pasted it back in the post and it still happens.

    Has anyone had this happen before?
    little bit confuse with "will display on the backend, but nothing displays on the front end" ..

    because for wordpress, after you create correct template file (index.php, single.php, page.php, etc), backend is on wordpress POST / PAGE, right?

    but maybe i am misunderstood ..

    here are my tips when converting static site to wp ->
    1. just open static site on browser
    2. do "view source" to get pure html result from this static site (so i don't need to thing about the real source, that maybe get from strange php file)
    3. cut it to 3 different file, header.php + index.php (content) + footer.php
    4. edit

    that's it,
    hope helps,
    {{ DiscussionBoard.errors[3212009].message }}
    • Profile picture of the author cma01
      Thanks for the replies. It is just for certain posts, not all of them.

      I think some of it was some formatting tags that were improperly nested that Dreamweaver didn't clean up. That wasn't all of it though. There were a few that I had to strip out every single bit of formatting before it would display.

      The site was close to 300 pages, so I was trying to go the import route rather than setting them all up one by one.

      1. just open static site on browser
      2. do "view source" to get pure html result from this static site (so i don't need to thing about the real source, that maybe get from strange php file)
      3. cut it to 3 different file, header.php + index.php (content) + footer.php
      I had all the source files, and I was thinking along those lines when I initially planned it out. But I am not kidding when I say the initial files were a mess. I don't think I've ever seen a bigger pile of crap than what it started out as.

      The other part of the problem was that there was almost no continuity in structure from page to page.

      Just as an example of how ridiculous it was, they had italics in the page title, as in:

      <title><i>This</i> is the Page Title!</title>.

      And then it just went downhill from there.
      Signature
      "Wise men talk because they have something to say; fools, because they have to say something."
      ~ Plato
      {{ DiscussionBoard.errors[3214072].message }}

Trending Topics