Viewing 15 replies - 1 through 15 (of 38 total)
  • It’s a WordPress 4.2.3 “problem”. Also read the others support threads.

    A temporary fix is to comment out line 209 in wp-includes/shortcodes.php from:

    $content = do_shortcodes_in_html_tags( $content, $ignore_html );

    to

    // $content = do_shortcodes_in_html_tags( $content, $ignore_html );

    But it will makes your website unsafe…

    Thread Starter Derp-Ti-Do

    (@davideassis7)

    Thanks, Peter! Solved the problem! ??

    I need to keep that way until a official fix.

    I am having this issue too – what does that mean, ‘it will make your website unsafe’? What are the risks? Thanks.

    I am not a security expert, so I don’t know what the risks are.

    Maybe it’s better to read this post (and comments): https://make.www.ads-software.com/core/2015/07/23/changes-to-the-shortcode-api/

    And this conversation:
    https://www.ads-software.com/support/topic/wordpress-423-broke-my-code?replies=45

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    Thank you, Peter, for helping during this situation with WP 4.2.3 and the new Shortcode API.

    The temporary fix above is definitely not recommended. Core files should never be modified, and it was my mistake to propose it. While it brings back the previous behavior of shortcodes, it reopens the security vulnerability that was addressed by the WP 4.2.3 update.

    For everyone still having shortcode issues with WP 4.2.3 compatibility, please tell me how you’re using the shortcode (and surrounding context) so I can solve it in a plugin update – that would be the correct way of solving the issue.

    Thanks Eliot. Here is an example of how I am using it in a widget:

    [loop type=”nameofcpt” tag=”adsfpo” order=”ASC” orderby=”title”]

    [/loop]

    Thread Starter Derp-Ti-Do

    (@davideassis7)

    I’m using the URL as link for the post titles in my loops… but the [field url] loads the current URL instead of the post url.

    I have the same problem on my page. Cannot link to it because it’s on the localhost but I’m using it to link from my custom field images:

    [loop type=knigi list=true item=li columns=3]
    	<a href="[field url]">[field image=book_cover size=medium]</a>
     [field title-link]
    [/loop]

    The new plugin version seems to fix this problem, so please disregard my message ??
    Thanks a lot!

    Plugin Author Eliot Akira

    (@miyarakira)

    Thank you, jinjiru, for letting me know that it’s been solved for you.

    Could everyone else confirm that the latest update fixed this issue?

    Thread Starter Derp-Ti-Do

    (@davideassis7)

    Not solved for me! :/

    Plugin Author Eliot Akira

    (@miyarakira)

    Hi Davi,

    Could you try the newest version 2.6.1 and see if it’s solved? If not, please let me know how you’re using the shortcodes and exactly what is not working, and I’ll do my best to hunt down the cause.

    It is not solved for me as well… I am using the latest update, it was working on a previous update 2.5.9 I think

    I reverted back to 2.5.7 now all links are working on my site, but I have some issues with users and I have posted in another support thread.

    Please anyone can advice regarding users? it is showing the current user (logged in user) instead of the selected user.

    Thread Starter Derp-Ti-Do

    (@davideassis7)

    Hi, Akira!

    Just updated the plugin to 2.6.1 but the problem persists. Here’s my current code:

    [loop type=audiotheme_record taxonomy=audiotheme_record_type term=blues-rock orderby=field _audiotheme_release_year key=_audiotheme_release_year order=DESC]
    <div class="disco">
    <div class="disco_capa"><a href="[field url]">[field thumbnail]</a></div>
    <div class="disco_desc">
    <p class="disco_titulo">[field title]</p>
    <p class="disco_ano">[field _audiotheme_release_year]</p>
    </div>
    </div>
    [/loop]

    And here’s a live example: https://edugomes.com.br/discografia/

    Only works if I comment the line 209 in shortcodes.php as before. :/

Viewing 15 replies - 1 through 15 (of 38 total)
  • The topic ‘[field url] doesn't works anymore!’ is closed to new replies.