Trip properties
-
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
-
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.
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
Do not include script tag. just place {json data}.
I didn’t insert the script tags, but it doesn’t work.
Any idea?
ThanksIn the AMP settings tab. Have you enabled options to show schema on AMP or Non AMP?
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": "http://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 6 years, 4 months ago by
nero2001.
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.
ok, I look forward to the update.
Thank you
I have checked your json code on http://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.
Great! Now it’s work!
Thank you so much!
-
This reply was modified 6 years, 4 months ago by
The topic ‘Trip properties’ is closed to new replies.