• Resolved Rein

    (@lerenaar)


    Hey,

    whats the reason that the #_EVENTLINK in a ul displays a
    ?
    How do i have 2 lines (or linebreak) of text and not the
    -code?

    Example:
    <ul class=”past_events”>[events_list_grouped scope=”past” mode=”monthly” order=”DESC” ]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Can you repost this in a new thread but use the code button to contain your code so that it remains readable? Thanks.

    Thread Starter Rein

    (@lerenaar)

    <ul class="past_events">[events_list_grouped scope="past" mode="monthly" order="DESC" ]<li>#_EVENTLINK - #_EVENTDATES</li>[/events_list_grouped]</ul>
    
    The result is:

    TEXT
    TEXT – za 07.02.2015

    Thread Starter Rein

    (@lerenaar)

    sorry, i see the previous input is not correct.

    The code i use is:

    <ul class="past_events">[events_list_grouped scope="past" mode="monthly" order="DESC" ]
    <li>#_EVENTLINK - #_EVENTDATES</li>
    [/events_list_grouped]

    the eventlink has a <br/> in the title.
    In the output is the <br/> not converted to a linebreak.
    The result is:
    text <br/> text

    ps: can you delete the previous question?

    best regards

    Can you post a link to a page where this is happening?

    Thread Starter Rein

    (@lerenaar)

    I made was working on my localhost. Dumped the wordpress temporary on a testsite:
    https://goo.gl/u8qJyd

    This only seems to be happening for some events (ones with long titles). Does it happen if you test with the default WordPress theme?

    Thread Starter Rein

    (@lerenaar)

    yes, same result with theme twenty fourteen: the <br/> is output as text and not as html-code. Do you see a solution?

    Do you have any kind of plugin running that’s connected with page / post titles?

    It would probably be a good idea to test with all other plugins deactivated in case one of them causing this problem.

    Thread Starter Rein

    (@lerenaar)

    disabled all other plugin and activated theme twenty fourteen and nothing is changed. The output is still the br/ what is correct in a single-event but not in the page with the code

    <ul class="past_events">[events_list_grouped scope="past" mode="monthly" order="DESC" ]
    <li>#_EVENTLINK - #_EVENTDATES</li>
    [/events_list_grouped]

    I have tried this:

    function em_my_get_events_list_shortcode($atts) {
    	ob_start ();
    			$atts = (array) $atts;
    			$atts['format'] = '<li>#_EVENTDATES: #_EVENTLINK</li>';
    			return '<ul class="myeventlist">' . EM_Events::output( $atts ) . '</ul>';
    	$content = ob_get_clean();
    	return $content;
    }
    add_shortcode ( 'my_events_list', 'em_my_get_events_list_shortcode' );

    Result is the same: the #_EVENTLINK is one line and print the code <br/>

    And you definitely don’t have a br tag in the event title? Just to check…

    Thread Starter Rein

    (@lerenaar)

    Hallo,

    made a testpage
    For example on the third line in feb 2015 (14.02.2015) -> contains a <br/>. If you click on that link: you see in the title that there is no <br/>.

    I worked al day to find a solution but nothing worked.

    Do you see a solution?

    best regards,

    caimin_nwl

    (@caimin_nwl)

    Which version of Events Manager and WordPress are you using?

    Thread Starter Rein

    (@lerenaar)

    WP 4.1.1
    EM 5.5.5

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘shortcode #_EVENTLINK displays <BR /> code’ is closed to new replies.