• Hey Everyone,

    I have a pretty basic question I am sure, but I can’t figure out the answer.

    I built a website for my cousin’s band, and now I want to use wordpress just as a backend for it. Rather than use the themes and stuff, I just want to read the database and print out the stories. The problem is that when I have linebreaks in the post and I do a simple <?= $row[post_content] ?> the linebreaks are not there. They’re the only piece that isn’t working for me at the moment and I would love a hand on how to fix this…

    Thanks!

    –d

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rather than use the themes and stuff,

    WP doesn’t work without a theme.
    I am not sure I understand what are you doing…

    Thread Starter whatadewitt

    (@whatadewitt)

    I am simply using the backend and database functionality. Therefore wordpress is running, it’s just rather than using a wordpress theme, I have a site already built that is set up to read posts from a backend database. The problem is that when I read the posts, I am not getting my linebreaks to display properly. I am sure that somewhere in the code, when the posts are being called to be printed, they are looking for ‘\n’ strings in the post and replacing them with line breaks, however, doing a search for ‘\n’ in the wordpress directory gives me about 900 results, so I just want to know how I can make sure that when I print out a post from the database the linebreaks are seen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Printing posts’ is closed to new replies.