• Resolved BlueNC

    (@bluenc)


    I am trying to use a custom dateformat as outlined on the help page to make my “widget list” schema.org friendly, but it appears that this particular part is being stripped from the widget output format box.
    as an example:
    <div class="event-block" itemscope itemtype="https://schema.org/Event">
    is being rendered to <div class="event-block">
    and <time datetime="#_{Y-m-d\TH:i:s\+00:00}" itemprop="startDate" class="time published">August 17, 2015</time> is committed completely, with the exception of that “hardcoded” August 17,2015.

    Is there any way to make it work without having to tinker around in the “em-events.php” file ?

    Thank you in advance for all your help.

    https://www.ads-software.com/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry but did you mean using events widget > list item format?

    Thread Starter BlueNC

    (@bluenc)

    Yes, I meant the “List item format” box, when placing the widget. I put my own markup in as suggested by “schema.org”, but everything (see above) is being stripped out of that box, once saved.
    The only way I was able to solve it for the moment is to remove “wp_kses_post” from the widget code for the format field.

    I know this is not an optimal solution, and I really do not like to “hack” into plugin files, as they will be overwritten with the next update. At least I have it working for now. It would be nice if a future version of Events Manager, could give more freedoms to the output formatting, without jeopardizing security (as with my approach).

    Thank you very much

    Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe you can try to use events_list shortcode instead then wp text widget (might need additional plugin to enable shortcode in text widget)?

    Thread Starter BlueNC

    (@bluenc)

    Angelo, thank you for your suggestion;
    As I stated in my earlier response, I have it working right now, by “patching” the widget code.
    I am a WordPress Purist, which means, if I can get away without a plugin I will do so. ?? It would be nice though, if future versions of the Events Manager, would allow for more tags and attributes in the “List item format” box. Since Searchengines are increasingly looking at microdata (schema) information, it also becomes more important for me to mark everything up correctly. Perhaps in the future, the Events Manager could spit out the events in the correct schema format ??

    Again thank you for all your help and prompt responses

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Placeholders for Widget output’ is closed to new replies.