Skip to content

JsonLd not working when used with SEO::generate #321

Open

Description

@J-Brk

Placeholder issue to look into the problem of jsonLd not working when used with SEO::generate as mentioned by @Rattone.

What steps will reproduce the problem?

  1. Use JsonLd to set attribute; JsonLd::setTitle('Test1234');
  2. Use SEO::generate() for the output.

What is the expected result?

The ouput schema to contain the set title.

What do you get instead?

No JsonLD output.

Additional info

Potentially caused by: a082a17#r139419109
@Rattone

Activity

  1. self-assigned this
    on Mar 7, 2024
  2. FelipeKraefft commented on Sep 16, 2024

    @FelipeKraefft

    Any updates?

  3. EpocDotFr commented on Sep 20, 2024

    @EpocDotFr

    Encountering the same issue. The workaround is to set JSON-LD data through JsonLdMulti.

  4. added a commit that references this issue on Sep 20, 2024
  5. jhonprimedev commented on Dec 11, 2024

    @jhonprimedev

    I have the same problem, is there an update?

  6. LUCASFRANKINC commented on Mar 30, 2026

    @LUCASFRANKINC

    The best thing to handle this issue is to ensure you use JsonLdMulti, checking if there exists an instance of this already using the isEmpty method first. It works.

    if (! JsonLdMulti::isEmpty()) {
                    JsonLdMulti::newJsonLd();
                   ...
                }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions