Viewing 4 replies - 1 through 4 (of 4 total)
  • @alexmendonca Without seeing the actual website this is difficult to diagnose. However, this is what I would advise. The issue appears to be that you are adding html code into custom fields to generate a menu of links but the html is no longer rendering. I would assume this is a security risk update.

    There are a couple of plugins that may help you to resolve this issue and will be an easier way to manage your html snippets.

    The first one I have used on many sites and it does exactly what it suggests. It is a very simple and clean plugin. This plugin allows you to create as many widget areas as you want that you can place anywhere on your website using a shortcode. In your situation you would create a new widget area, add an html widget to the new widget area, then place the shortcode provided in your content where you want it to display.

    https://www.ads-software.com/plugins/amr-shortcode-any-widget/

    The second one I have only just started using but I am planning to use it to replace the one above as it appears to have fewer limitations and more features for where the content can be displayed. This plugin allows you to create a custom post that you can add any html or code snippet and then provides a shortcode that you can place anywhere on your site. The cool part with this one is that it also allows you to place the snippet in the header or footer and comes with support for many code snippets like tracking codes. Overall it is very easy to use and allows placing code snippets anywhere on your site with relative ease.

    https://www.ads-software.com/plugins/add-to-all/

    I am not personally associated to either plugin other than as a happy user of both.

    Thread Starter alexmendonca

    (@alexmendonca)

    Hi @wlpdrpat

    Thank you for your answer.

    I haven’t tested the plugins you suggested, but one problem that I foresee is that I need the menus to be different for each page.

    It’s not a matter of having a “fixed” menu, which I think is what your first suggestion (widget) does.

    It would have to allow me to have one menu/widget for each pager because the links are different for each page. This is why we use Custom Fields, because they are page-based (each page has individual set of fields that only applies to that one page).

    @alexmendonca The second plugin I suggested would work well for this scenario. In the same way that you created the custom menu for each post in the custom field – you create it as a custom post type using this plugin and then insert the shortcode into your post. It is no more challenging than what you are already doing. Yes, it will take a bit of effort to transfer the custom menus from each post but once it is completed then it should be very easy and clean to manage.

    Thread Starter alexmendonca

    (@alexmendonca)

    @wlpdrpat I see…

    Do you know if I can make it appear on the sidebar?

    Also, back to the original problem, you mentioned that it’s probably a security fix, but I am not so sure about that because we have another site which also uses HTML on the custom fields and that it’s also been upgraded to WordPress 6.0.2. However, the same problem did not oocur on this other site.

    The only thing different that I can think of from the two sites is that they use different themes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTML in custom fields no longer working after 6.0.2’ is closed to new replies.