• Resolved mhirsch95

    (@mhirsch95)


    Hello,

    thanks for this nice plug-in but i found a big bug i gues or it′s a bug in my wp…

    I add a custom post block to my site and select category xyz and press save.
    When i close the site in backend and re-open it in backend the option of category xyz is gone. Or just a reload with f5 and the selected term got a reset…

    I need to select everytime a category when page I edit the page.

    My System:
    Wordpress 5.1.1
    WAMP: 3.1.4
    PHP: 7.2.10

    I got no PHP error or JS error durring the save process.

    I just watched in debug and I think something in save call is wrong – JS:
    save: function() { return null }
    I′m not really good in Gutenberg blocks but isn′t it neccessary to write a save routin?

    I hope you can help me.

    best regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ronald Huereca

    (@ronalfy)

    This is a known bug and I will try to fix it this weekend. Thanks for your patience and for using the plugin.

    Thread Starter mhirsch95

    (@mhirsch95)

    Oh perfect that would be so awesome.

    I watched a bit deeper so its somethink like
    state.term never get the value from state.termsList[index] where selected
    there or maybe im completly wrong:
    wp.element.createElement(H, {
    label: b(“Terms”, “post-type-archive-mapping”),
    options: this.state.termsList,
    value: d,

    onChange: function(e) {

    t.props.setAttributes({ term: e })

    ,
    t.get_latest_posts({ term: e })
    }
    }

    I shut up now and let you do ??

    Best regards

    • This reply was modified 5 years, 8 months ago by mhirsch95.
    Plugin Author Ronald Huereca

    (@ronalfy)

    This should be fixed now with version 2.0.3.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with Category on save’ is closed to new replies.