- This topic has 41 replies, 2 voices, and was last updated 6 years, 6 months ago by
Tom.
-
AuthorPosts
-
November 19, 2018 at 11:02 pm #731662
Tom
Lead DeveloperLead DeveloperThat code is new in GP 2.2, and was introduced towards the end of the betas.
Glad it’s working 🙂
November 19, 2018 at 11:24 pm #731691Soumyadip
Hi tom one more thing.. i just looked into this article https://docs.generatepress.com/article/json-ld/ will i have to implement the below code ?
add_filter( 'generate_json_ld', function( $data ) { if ( is_singular( 'recipe' ) ) { $data['@type'] = 'Recipe'; $data['name'] = get_the_title(); $data['prepTime'] = get_post_meta( get_the_ID(), '_my_prep_time_field', true ); $data['cookTime'] = get_post_meta( get_the_ID(), '_my_cook_time_field', true ); } return $data; } );Because i am also running a food blog…
Plz help me with this…November 19, 2018 at 11:26 pm #731696Tom
Lead DeveloperLead DeveloperThat code no longer applies, as we pulled the JSON-LD option before releasing 2.2.
Wanted to work on it some more before releasing it to the wild.
November 19, 2018 at 11:33 pm #731706Soumyadip
Thanks tom just waiting your next amazing updates…
November 19, 2018 at 11:34 pm #731708Tom
Lead DeveloperLead DeveloperThanks! 🙂
November 20, 2018 at 11:13 pm #732971Soumyadip
Hi tom one thing I forget is “Hatom” is still showing there have a look…http://i.is.cc/N1cx3ej.png
Let me know how to remove that too..
November 21, 2018 at 9:19 am #733571Tom
Lead DeveloperLead Developerhatom is added using classes within certain objects. It’s not possible to remove those as of now.
November 21, 2018 at 10:25 pm #734062Soumyadip
Ok.. but having hatom in the schema is good or bad.. any bad seo effects?
November 22, 2018 at 9:34 am #734769Tom
Lead DeveloperLead DeveloperDefinitely not. We wouldn’t add anything to theme that would hurt SEO 🙂
September 14, 2019 at 4:42 am #1009224Soumyadip
Hi Tom, any updates regarding htom (it’s almost a year), it’s still showing https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.allchickenrecipes.com%2Fchicken-salad-with-grapes%2F
Let me know how to remove that
September 14, 2019 at 9:07 am #1009446Tom
Lead DeveloperLead DeveloperDoes adding this function make a difference?:
add_filter( 'post_class', function( $classes ) { $classes = array_diff( $classes, array( 'hentry' ) ); return $classes; } );September 16, 2019 at 1:43 am #1010373Soumyadip
Naah, no difference! I also tried to replace “hentry” with “hatom” in your code.. but still hatom is showing in the testing tool.
September 16, 2019 at 9:47 am #1010845Tom
Lead DeveloperLead DeveloperIs that code still active (with
hentry)? If not, can you re-add it?September 17, 2019 at 12:23 am #1011254Soumyadip
Ok, I have re-added the exact code of yours.
You can have a lookSeptember 17, 2019 at 10:31 am #1011828Tom
Lead DeveloperLead DeveloperLooks like that removed most of it. The only remaining parts are the tags. Out of curiosity, if you disable tags in Customize > Layout > Blog, does it remove the remaining hatom stuff?
-
AuthorPosts
- You must be logged in to reply to this topic.