• Resolved freizeitmonster

    (@freizeitmonster)


    Hi Greg,

    i have several text area field (like opening hours, imprint, …).
    When users insert their content, on the ad detail page the content is displayed inline.

    How can i configurate the text area field that the content will displayed like this, for example:

    Open hours:
    Monday - Friday: 08:00 - 12:00
    Saturday - Sunday: 09:00 - 12:00
    
    No Holidays.

    Do you know what i mean?

    Best
    Sven

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    you cannot do that with the text area field as by definition it allows entering any text.

    You would need to have some custom field programmed that will allow entering the opening hours like for example here https://dribbble.com/shots/15579479/attachments/7364985?mode=media, but doing this is beyond the support I am offering here, sorry.

    Thread Starter freizeitmonster

    (@freizeitmonster)

    Hi,

    i think we have a misunderstanding.

    Currently the field output is:
    Open hours: Monday - Friday: 08:00 - 12:00 Saturday - Sunday: 09:00 - 12:00 No Holidays.

    What I need is this text as entered in field:

    Open hours:
    Monday - Friday: 08:00 - 12:00
    Saturday - Sunday: 09:00 - 12:00
    
    No Holidays.
    Thread Starter freizeitmonster

    (@freizeitmonster)

    Hi Greg, any ideas?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    is this field created with the Custom Fields extension? If so i am afraid you cannot change that, at least not without modifying the wpadverts-custom-fields/wpadverts-custom-fields.php file.

    We will make a change that will respect paragraphs in the next release, in the meantime you can find in this file a line 1063, it should be
    $data[] = $value;
    and change it to
    $data[] = apply_filters( "adverts_the_content", $value );

    Thread Starter freizeitmonster

    (@freizeitmonster)

    Thank you Greg,
    this works great.

    Please put this into your next update. 🙂

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    sure, i created ticket with this issue, so the same fix should be in the next CF release.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Formatting content from text area field’ is closed to new replies.