• I really like this plugin but I just spend two hours figuring out why the ld+json snippet with the structured data is not put in the <head> until I noticed that it is done in the_content(). I was working in a theme that does not make use of the_content() as its working with flexible acf content boxes. Can you please move the output to wp_head() in further updates? It makes much more sense to me this way, but I’m open for other opinions. Thanks!

    • This topic was modified 4 years, 6 months ago by tomtomd.
    • This topic was modified 4 years, 6 months ago by tomtomd.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi!

    This is interesting, I never saw a theme that doesn’t use the_content.

    I will do some test on this after I’ll release the next version (2.3.3)

    Best,
    Dario

    Thread Starter tomtomd

    (@tomtomd)

    Thanks for your fast reply! Yes it’s a project for a client with specific requirements. I agree that a usual theme for end users always makes use of the_content(). I’m just used to other plugins outputting their relevant code in wp_head(). I think it also makes sense, because you can put the shortcode at any place, in my case the footer. Another option could be outputting it with the shortcode as well.

    Plugin Contributor dudo

    (@dudo)

    I’ve already tried to put schema info along with the shortcode, but I rolled back using the_filter due to this https://www.ads-software.com/support/topic/shortcode-in-theme-doesnt-work-after-update/#post-12657034

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Please move json structured data output to wp_head()’ is closed to new replies.