WordPress.org

Ready to get started?Download WordPress

Forums

Custom Tables
[Plugin: custom tables] HTML in field not working (11 posts)

  1. alnpetepress
    Member
    Posted 2 years ago #

    Just upgraded to the latest custom tables. I had a field in a table which had html in it that had been displaying perfectly before. After the upgrade it just displays the html itself. I can't see anything in the changelog that would cause that. What else has changed? More to the point how do I get it to display the html correctly now?

    http://wordpress.org/extend/plugins/custom-tables/

  2. Stefan M.
    Member
    Plugin Author

    Posted 2 years ago #

    hi, what HTML was inside the field and what is showing today?

    PHP has changed massivly if you have used [wctphp] but HTML should work.

    Regards

  3. alnpetepress
    Member
    Posted 2 years ago #

    I had a simple a tag with an href and a title attribute. Previously it displayed correctly, after the update it just shows the html. The field is a text field, and it's being displayed inside a simple p tag.

  4. Stefan M.
    Member
    Plugin Author

    Posted 2 years ago #

    copy past me here the code which is not working...

  5. alnpetepress
    Member
    Posted 2 years ago #

    I can't I've had to delete the data to stop the page looking dreadful and replace it with straight text for now.

    But it was a column called authors which had content similar to the following:

    <a href="author1.html" title="Read more...">author1 name</a>,
    <a href="author2.html" title="Read more...">author2 name</a>,
    <a href="author3.html" title="Read more...">author3 name</a>

    With a table setup that included the following:

    <p>{authors}</p>

    and it used to show on the page as:

    author1 name, author2 name, author3 name

    all as links, but after the upgrade it showed on the page as:

    <a href="author1.html" title="Read more...">author1 name</a>,
    <a href="author2.html" title="Read more...">author2 name</a>,
    <a href="author3.html" title="Read more...">author3 name</a>

    The number of authors is variable (from 1 to 7 at the moment, could be more) so I don't really want to have separate columns for each possible author and another one for a link to their page, especially as in most cases only one or two are used.

  6. Stefan M.
    Member
    Plugin Author

    Posted 2 years ago #

    <a href="{author1}.html" title="Read more...">{author1}</a>,
    <a href="{author2}.html" title="Read more...">{author2}</a>,
    <a href="{author3}.html" title="Read more...">{author3}</a>

    ...
    like that?

  7. alnpetepress
    Member
    Posted 2 years ago #

    That would mean having a potentially infinite number of columns to cater for multiple authors. If I could have a proper many-to-many relationship with an 'author' table or a 'one-to-many' relationship with an 'author x-ref' table to achieve the same thing it would achieve the desired effect.

    But why did it stop working as previously?

  8. Stefan M.
    Member
    Plugin Author

    Posted 2 years ago #

    Has this ever worked?

    relations between tables is planned, but was never implemented.
    this will be a feature in the future.

    I'm working right now on the relationship tables which are upcoming.

  9. alnpetepress
    Member
    Posted 2 years ago #

    It worked with html embedded in the column contents, as I showed above, for the last few months right up until I applied the latest upgrade 6 days ago.

  10. Stefan M.
    Member
    Plugin Author

    Posted 2 years ago #

    can you do an backup (not export) and send me the file via the http://bugtracker.wuk.ch ?

    I can then reimport it and look how you did it (the old working code which is now broken). I can then see why its not working anymore and fix it.

  11. Stefan M.
    Member
    Plugin Author

    Posted 2 years ago #

    If you are fast, the next release is this evening and if you sending it early, I can add the fix already in this release...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic