Support » Plugin: Yasr - Yet Another Stars Rating » How to change ItemType for posts that are already published?

  • Resolved narubi

    (@narubi)


    Hello, I would like to change the ItemType from “Product” to “Game” for all posts that are already published, all at once.

    I can see there is a window in each individual post to change the ItemType, however I would like to change around 1000 posts that are published as “Product”, is that possible?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author dudo

    (@dudo)

    Hello narubi!

    In the settings, you can choose the default itemType; please not that if you in the single post changed the itemType, this setting will not overwrite it.

    To explain this better:

    When markups are printed, YASR check if there a saved markup for the single post or page.
    If this is not found, then check the default one (that you can select in the settings)

    Best,
    Dario

    Thanks for a quick response Dario.

    The problem is, when I change the option in the plugin settings from “Product” to “Game”, all posts that are already published on the site stay at “Product”.

    All posts were automatically saved as “Product” after the plugin install and the only way how to change them to “Game” is by manually editing one by one.

    Is there a way to bulk edit all of them from “Product” to “Game”? ..or perhaps disable the ItemType in the post editor all together?

    • This reply was modified 10 months, 2 weeks ago by narubi.
    Plugin Author dudo

    (@dudo)

    Ah, I see.

    No, there is no such tool, sorry πŸ™

    hovewer, I found this plugin https://wordpress.org/plugins/bulk-postmeta-editor/ that seems like allows you to bulk edit your post_meta; you’ve to find the meta_key “yasr_review_type” and select “Game” as itemyType.

    Please note that I never tested that plugin, so let me know πŸ™‚

    Thanks again.

    What I did for now is to change the yasr functions file to show schema for “game” instead of “product” when “product” is selected. But the code will be overwritten anyway with the next update right? So I need some better solution.

    I will try that plugin you mentioned.

    Ideal solution would be to implement this function directly into options. So whichever option selected in the yasr settings would overwrite the single post setting.

    NVM, thanks anyway.

    Plugin Author dudo

    (@dudo)

    Ideal solution would be to implement this function directly into options. So whichever option selected in the yasr settings would overwrite the single post setting.

    Yeah I know, but I’m afraid that adding another option will make everything too complex.

    Have a nice day!

    No worries, I understand.

    I have successfully changed the ItemType for all posts using the bulk edit plugin.

    By the way, is there any possibility you add more ItemTypes such as VideoGame and SoftwareApplication with all their corresponding properties? It would be fantastic!

    It seems that Google is now kinda picky and doesn’t display the ratings when there is a wrong type of schema selected.

    Cheers.

    Plugin Author dudo

    (@dudo)

    It’s already in my todo list πŸ™‚

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to change ItemType for posts that are already published?’ is closed to new replies.