• Resolved nero2001

    (@nero2001)


    Hello,

    great plugin, congratulations.
    I’m trying to use the Trip scheme, but I know that it only inserts some of the properties of Schema.org.
    I would also like to insert “arrivalTime”, “departureTime”, “itinerary” and “itemList”.
    How can I do?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    There are two way modification of schema. For this kind of schema I currently recommend you to modify on individual post. There you can find trip’s more field.

    Thread Starter nero2001

    (@nero2001)

    Hi Sanjeev,

    I’m trying to insert a code inside the post, but it tells me “not a valid json” and is not applied to the page.
    The code I entered is correct, I also verified it with the test of Google’s structured data.

    What should i do?

    thanks

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    Do not include script tag. just place {json data}.

    Thread Starter nero2001

    (@nero2001)

    I didn’t insert the script tags, but it doesn’t work.
    Any idea?
    Thanks

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    In the AMP settings tab. Have you enabled options to show schema on AMP or Non AMP?

    Thread Starter nero2001

    (@nero2001)

    Hi Sanjeev,

    on my site I don’t use AMP, and in the settings of your plugin I ticked the “Structured Data for Non AMP” item.
    The problem is that in the travel page, where I have to enter the code, I get this red message “not a valid json”, but the code has been tested on the Google page of the structured data test.

    {
      "@context": "https://schema.org",
      "@type": "Trip",
      "name": "trip name",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
      "itinerary": [
            {
                "@type": "City",
                "name": "city name",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
                "url": "https://www.example.com/"
            },
            {
                "@type": "City",
                "name": "city name",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
                "url": "https://www.example.com/"
            },
            {
                "@type": "City",
                "name": "city name",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
                "url": "https://www.example.com/"
            },
            {
                "@type": "City",
                "name": "city name",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
                "url": "https://www.example.com/"
            },
            {
                "@type": "City",
                "name": "city name",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
                "url": "https://www.example.com/"
            },
            {
                "@type": "City",
                "name": "city name",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
                "url": "https://www.example.com/"
            },
            {
                "@type": "City",
                "name": "city name",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque egestas ultricies lacus, id condimentum dui.",
                "url": "https://www.example.com/"
            }
        ]
      }
    }

    Thanks

    • This reply was modified 4 years, 10 months ago by nero2001.
    Plugin Author Magazine3

    (@magazine3)

    I made a ticket for this issue (https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/637). It will be fixed on upcoming updates.

    Thread Starter nero2001

    (@nero2001)

    ok, I look forward to the update.

    Thank you

    Plugin Author Magazine3

    (@magazine3)

    I have checked your json code on https://jsonviewer.stack.hu and it seems this code is invalid (https://prnt.sc/q6fw7g). Can you remove this bracket (https://prnt.sc/q6fwwy) ? So that your json code will be validated and this issue will be fixed.

    Thread Starter nero2001

    (@nero2001)

    Great! Now it’s work!

    Thank you so much!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Trip properties’ is closed to new replies.