Support » Plugin: Event post » Per-Page schema settings: advice for success

  • Resolved pwesling


    I need assistance, please. I have set up a customized Schema, for how the Event Posts appear on my Home Page ( I want a different order of fields on another page, and have tried to insert this modified Schema on that page, but it only shows up as text, and doesn’t re-order the Event Post fields. I need guidance in where to put this second Schema, how to designate it (ie, a different “class”?), and how to get it to apply to this new page’s listing.
    Current schema:
    <%child% class="event_item %class%" data-color="%color%"> <a href="%event_link%"> <strong>%event_title%</strong> </a> <em>%event_excerpt% %event_location%</em> %event_date% </%child%>
    My try at a per-page schema, to put at the start of a new Page:
    <%child% class="event_item %class%" data-color="%color%"> %event_date% <a href="%event_link%"> <strong>%event_title%</strong> </a> <em>%event_excerpt%</em> %event_location% </%child%>
    Do I set it up somewhere, then use a ShortCode? Set up a new Child? Maybe more-explicit directions can be added to the Tutorial? Thanks for your help!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • If anyone can give me guidance on setting up the per-page schema, I’d appreciate it! I have three clients’ websites that need this. Thanks!

    Plugin Author Bastien Ho


    the [events_list] shortcode takes container_schema and item_schema parameters in order to manage custom display in pages.

    But those parameters have to be used carefully because of quotes. In your example, the code is broken.

    You can try using single quotes this way:
    [events_list item_schema="<%child% class='event_item %class%' data-color='%color%'> %event_date% <a href='%event_link%'> <strong>%event_title%</strong> </a><em>%event_excerpt%</em> %event_location% </%child%>"]



    Yes, that was the help I needed! Here is my final post-level schema code:
    [events_list item_schema="<%child% class='event_item %class%' data-color='%color%'> %event_date% <a href='%event_link%'> <strong>%event_title%</strong> </a> <em> %event_excerpt% </em> %event_location% </%child%>" excerpt="1" nb="25" cat="meeting,webinar" order="ASC" future="1" past="0" geo="0"]
    Note that the regular “event-post” content needs to be embedded in the events_list code, right after the schema information.
    See the final web page:

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.