• Resolved Steve Greenham

    (@stevegrr)


    Hi, I’ve created a sidebar widget to feature particular events (those tagged “feature”. This works fine except I find I have to create an events_list that has all forthcoming events and then only display the tagged ones:

    [events_list]
    {has_tag_feature}
    #_EVENTIMAGE{200,0}<br>
    #_EVENTDATES<br>
    #_EVENTLINK<br>
    #_ATT{skipper} #_AVAILABLESPACES spaces<br>
    {/has_tag_feature}
    [/events_list]

    What seems to be happening is a blank line is created for every event, even those not tagged, so the sidebar widget is way too tall.

    With the Events-Manager sidebar widget I get a similar effect, except the stylesheet contains an <hr> so generates blocks of lines for each untagged event.

    It would be preferable to only select the tagged events in the initial [events_list] call, but if that is not possible how can I suppress the blank lines?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Steve Greenham

    (@stevegrr)

    OK, spending more time reading through old topics I found

    [events_list tag="feature"]

    That seems to have resolved my blank lines issue (especially if I can combine with has_available_spaces). Sadly it doesn’t seem to be possible to pass the tag to the Events-Manager sidebar widget. That only respects filtering by categories, which is a shame because the formatting is so much better than my text box.

    Blank lines are created by the ever-annoying wpautop() filter. That automatically adds paragraphs to your content.

    Here’s more info:
    https://codex.www.ads-software.com/Function_Reference/wpautop

    Also how t disable it. (On my sites I aways disable it immediately.)

    Thread Starter Steve Greenham

    (@stevegrr)

    Thanks. That is worth knowing but now I have restricted my events list to only the events I want to show the additional line isn’t a problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sidebar widget too long listing tagged Events’ is closed to new replies.