• I use the shortcode [a-z-listing post-type=”post”]. Up to version 1.5.4 it works very well. With 1.6.0 and higher it displays text like
    <span class=”entry-title-primary”>Aquarium</span>
    instead of
    Aquarium
    By opening “edit HTML” I see this:
    &lt ;span class=”entry-title-primary”&gt ;Aquarium&lt ;/span&gt ;
    Now my question: What has led to this change? How can I fix this?

    Thanks for your support!

    • This topic was modified 6 years, 11 months ago by schrotty.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter schrotty

    (@schrotty)

    Sorry, it’s my first topic I opend as a newby. By opening “edit HTML” I see instead of “<” the string “&lt ;” and instead of “>” the string “&gt ;”. The span is represented as a text. But if I change it in < and >, the presentation is correctly.

    • This reply was modified 6 years, 11 months ago by schrotty.
    • This reply was modified 6 years, 11 months ago by schrotty.
    • This reply was modified 6 years, 11 months ago by schrotty.
    • This reply was modified 6 years, 11 months ago by schrotty.
    Plugin Author Dani Llewellyn

    (@diddledani)

    My plugin has no mention of entry-title-primary so those tags aren’t coming from here ?? Try disabling other plugins and switching to a default theme (named twentysomething e.g. twentyseventeen) to see if the problem persists. If the problem goes away then try enabling everything you disabled one-at-a-time until the problem reoccurs; the last thing you enabled is the likely incompatibility. Once we find that we can look further to try to diagnose why the two are interacting badly.

    Thread Starter schrotty

    (@schrotty)

    The problem arises in connection with the plugin subtitles. But I want to continue to use both plugins! So I searched for the cause of the conflict and I have installed the different versions of your plugin successively. The change occurs from 1.6.2. (Not 1.6.0 as I wrote). The reason is a supplement in file partials/class-a-z-listing.php line 692 in 1.8.0: “global $post;”. After removing this entry, everything works fine again.
    What is this entry for? Is there any problem when it is removed again? Anyway, for me it’s better without this entry.

    Plugin Author Dani Llewellyn

    (@diddledani)

    How does the importing of the global $post cause error?
    What is the behaviour that you perceive as incorrect?
    What does the “subtitles” plugin do?
    Where can I get the “subtitles” plugin from to test?
    Have you customised the default template used by the A-Z Listing plugin in any way?

    Removing the import of the global $post will almost certainly lead to problems. It is there for the very precise reason that the plugin is designed to overwrite that variable and then restore it once complete.

    Thread Starter schrotty

    (@schrotty)

    Here is the link to my website: Hobby von A-Z .

    It displays text like “<span class=”entry-title-primary”>Aquarium</span> <span class=”entry-subtitle”>Faszinierende Unterwasserwelten in deinem Wohnzimmer</span>” instead of “Aquarium”. This is incorrect.

    The plugin allows adding subtitles on posts and pages. Here you can get it: Subtitles .

    I not have customised the default template, it is a standard template of wordpress. I have onlay customised the “site-branding.php” to display title and subtitle on the header image. But the use of the original file does not change anything, the error remains.

    So, I hope my writing is displayed correctly!

    Plugin Author Dani Llewellyn

    (@diddledani)

    @schrotty, the escaping will be fixed in the next version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode not works right since 1.6.0’ is closed to new replies.