• Resolved delucis

    (@delucis)


    Until the recent update, the events lists at http://claraiannotta.com/ were working correctly. Broken with WP 4.2.1 and Events v 2.3.

    It looks like the %link% tag, which used to return a URL and could be formatted in a chosen fashion — e.g. <a href="%link%" class="url"></a> — now returns a fixed linked text of “more »”.

    Is this what should now be expected? Is there any way to get just the URL?

    https://ww.wp.xz.cn/plugins/wp-events/

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

    (@adegans)

    Nothing was changed in how the plugin works.
    No changes, no new features. Just compatibility fixes.

    In the code %link% is still replaced by a full url, just as before.

    Thread Starter delucis

    (@delucis)

    Hi Arman, Thanks for the reply!

    Is it possible that something within the WP code base changed that impacted this?

    In the template I have <a href="%link%" class="url"></a>
    but in the front-end that is producing (for example):

    <a href="<a href="http://claraiannotta.com/works/chamber-music/al-di-la-del-bianco/" target="_self">More information »</a>" class="url"></a>

    It looks like somewhere there is a default link style with the text “More information »” (pulled I guess from the “Page Link” field in the Language options) and the whole anchor tag is being added including that target attribute.

    Plugin Author Arnan

    (@adegans)

    %link% in itself isn’t all that unique, it;s possible another plugin or theme does a trick with it.
    Events adds no class=”url” to it anyway. So if that was a thing… Then something else is hindering events 😉

    Thread Starter delucis

    (@delucis)

    The class="url" is being added by me in the template:
    <a href="%link%" class="url"></a>

    That means the %link% tag is being substituted by:
    <a href="http://claraiannotta.com/works/chamber-music/al-di-la-del-bianco/" target="_self">More information »</a>

    I accept it could be something else, but it seems unlikely. All was working well for two years until the recent update of Events —> 2.3 & WP —> 4.2.1 (no other plugins changed at that time).

    Plugin Author Arnan

    (@adegans)

    Events 2.3 is only a compatibility and security update. No features were changed or added.
    Meaning that if %link% replaces to a formatted html tag, it did so before the update, too.
    It’s been so long that I didn’t even remember what %link% did and had to look it up after your initial post 😉

    Thread Starter delucis

    (@delucis)

    Weird. Oh well, I’ll just deal with how it is. If ever you do any expansion work on the plugin, a URL only tag would be useful. But thanks in any case for the help and the work!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Bug using %link% in templates’ is closed to new replies.