SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    734
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    wodpress not retaining text formatting.

    is this normalish?
    I format the test of a wp post or page. adding breaks, paragraph tags...they don't take. It looks like they do but when i got to see the page they didn't take...
    thx
    D

  2. #2
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pdxSherpa View Post
    is this normalish?
    I format the test of a wp post or page. adding breaks, paragraph tags...they don't take. It looks like they do but when i got to see the page they didn't take...
    thx
    D
    Yeah, that sounds like it could be normal Wordpress behavior.

    I'm not sure, but it seems that Wordpress filters out <p> and <br> tags from TinyMCE in the wp-admin area, and then re-applies them via the Wordpress 'Loop' in the front end.

    Some years ago, before I learnt how to use Wordpress's wp_query to display content on the front end, I used to try to directly load the articles using my existing PHP/MySQL knowledge. So I installed a Wordpress plugin called PS Disable Autoformatting to get around Wordpress's tag-stripping behavior.

    I've discovered though that the wp_query Loop isn't all that bad after all. Very convenient to use their native syntax to connect to the database, and didn't take as long as I thought to learn.
    Trying to fill the unforgiving minute
    with sixty seconds' worth of distance run.

    Update on Sitepoint's Migration to Discourse

  3. #3
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    734
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thank you Shaun.
    D


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •