• I’m using WordPress 2.9.2. with the Multiple content blocks plugin Version 1.4.1 by Ontwerpstudio Trendwerk .

    I’ve got a fairly complex page with about 17 different blocks of content.

    I’m finding that the first time I enter data, it appears OK, but as I continue to add more content to other blocks on the same page that after two or three updates previously working content blocks suddnely lose all their <p> and
    tags.
    Looking in the PhpMyAdmin tables I see that the <p> (and
    tags seem to have been converted into carriage returns, which are not honoured by HTML in the browser.

    I’ve tried putting the tags back in manually, but they still disappear after a few times round the editor.

    I’ve searched the fora and found a few posts talking about this sort of thing, but they all seem fairly old, and do not seem to offer any firm solution.

    Is there any update on this sort of thing. Is it a problem with Multiple content blocks, or a general one?

    I can’t believe all WordPress does the same thing all the time, or too many blogs would not work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.

    Thread Starter Cerddaf

    (@cerddaf)

    OK esmi. Here’s the link and the additional information.

    The page I was working on is http://skye.net-commerce-solutions.co.uk/
    (Please note: this page is in development – content and layout are very much first draft)
    I set up the content blocks, started to add content and clean up the formatting.

    I got the central block “Isle of Skye Psychic Centre” looking OK, with paragraphing using p tags, then started on the LH block “The Magic of Skye”. After a couple of updates to this block I noticed that the centre block had lost all paragraphing.

    I then tried updating the LH block, noting what happened (using the HTML tab).

    1, I set up the block, with p tabs (here displayed as {p} tabs so as not to mess up the posting

    Here’s what I entered, and confirmed to be in the database using PhpMyAdmin. (note the p tabs

    (strong)The Magic of Skye(/strong)(p)

    (/p)Since the arrival of the modern industrial age, most people have lost touch with the aliveness of nature. Nevertheless, there are many of us who feel the throb of that aliveness in our bodies and long to restore a real connection, knowing it will help to heal and restore our energies and vitality.(/p)

    (p)The Isle of Skye is a place where the aliveness of nature is still palpable. Everyone who comes here feels its special energies immediately. It is so wonderful to move out of the mechanical time-bound world of modern life, from a world where most things are dead, to a world where you can feel the magical energies of revival and connection all around you.(/p)

    (p)Skye is a place where you can enjoy feeling connecte, where the sense of separation and isolation begins to dissolve. Here, you begin to experience your sense of oneness with everything around you. Whatever it is about this island, it is a very special place, and the vast majority of people who come here experience something that uplifts them.(/p)

    (p)There are some things that are really worth the effort, and to make the Isle of Skye one place that you can say you have visited, seen and experienced is one of those things – a unique and wonderful experience, just in itself.(/p)

    I then used the update in the admin page, and found that the p tags had gone, although the block was still paragraphed in the admin edit diaplay. The paragraphing appears to be with newlines, not with p tags. PhpMyAdmin confirms the entry now looks like this

    (strong)The Magic of Skye(/strong)

    Since the arrival of the modern industrial age, most people have lost touch with the aliveness of nature. Nevertheless, there are many of us who feel the throb of that aliveness in our bodies and long to restore a real connection, knowing it will help to heal and restore our energies and vitality.

    The Isle of Skye is a place where the aliveness of nature is still palpable. Everyone who comes here feels its special energies immediately. It is so wonderful to move out of the mechanical time-bound world of modern life, from a world where most things are dead, to a world where you can feel the magical energies of revival and connection all around you.

    Skye is a place where you can enjoy feeling connecte, where the sense of separation and isolation begins to dissolve. Here, you begin to experience your sense of oneness with everything around you. Whatever it is about this island, it is a very special place, and the vast majority of people who come here experience something that uplifts them.

    There are some things that are really worth the effort, and to make the Isle of Skye one place that you can say you have visited, seen and experienced is one of those things – a unique and wonderful experience, just in itself.

    This displays on the front end as a concatenated string, as at present.

    How should paragraph splits be entered an processed by the system?
    How can I stop (p) and (br) tags being lost in this way?

    Either your multiple content blocks plugin is stripping out the tags – possibly due to the way in which it is passing on the content to WP – or you have a plugin or theme that is causing the problem.

    Have you tried:

    – deactivating all other plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems?

    Are you using the Visual Editor, the HTML tab or the plugin’s interface to add this content?

    Thread Starter Cerddaf

    (@cerddaf)

    Thanks:

    I’ll try your suggestions, meanwhile I’ve done some more checks.

    Usng the normal WordPress edit page I enter the user text

    UK xxxxxText Readings

    Text ‘Skye’

    and your question to 78887

    £1.50 / reply. UK Callers Only

    The newlines are entered with the ENTER key.

    This gets stored in the database with the newlines stored as hex 0D 0A.
    It is then displayed correctly with 0D 0A replaced by <p>.

    The reply to the admin screen however displays as 1 line

    UK xxxxxText Readings Text ‘Skye’ and your question to 78887 £1.50 / reply. UK Callers Only

    When I check the source code of this edit page reply, the newlines are actually there as 0D 0A, but they are not showing as newlines.

    For comparison I went back to a test bed I set up before startimg this project, and checked in an additional Content block on that system. There the newlines are also 0D 0A, but they are displayed correctly.

    So it begins to look as if the problem is in the display of the additional content block in the wordpress standard edit page, and that there is something in my system which is breaking it, which is not present in the testbed system.

    Thread Starter Cerddaf

    (@cerddaf)

    Thanks esmi,

    I shifted my theme out into a spare folder, and overwrote it with a clone of the default theme from my working testbed, then slowly added in my new stuff.

    It’s working now, so I conclude that somewhere in building my new theme I have deleted/amended something that the back office edit-page code uses.

    I don’t know what exactly it must be, but if it ain’t broke I ain’t going to fix it, expecially with a client who has been very understanding, but deserves to have his website complete ASAP.

    So thanks for your advice, much appreciated
    Cerddaf

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Losing <p> and <br> tags (using Multiple content blocks plugin )’ is closed to new replies.