• Resolved ratamatcat

    (@ratamatcat)


    The theme I use places a meta box on my regular wp post and custom post type’s post edit screen. I use this to turn a sidebar on or off on individual posts, among other functions.

    When I change this setting it’s not saving when I update the draft or published post. For regular wp posts there’s no problem, I can change this sidebar setting around and it updates.

    Could it be something to do with the ‘Settings’ for the post type under CPT UI? When I set up my custom post type, I have not manually inserted anything in the fields for the following:

    REST API base slug
    REST API controller class
    Has Archive (i.e. I did not enter a ‘Slug to be used for archive URL’)
    Capability Type*
    Custom Rewrite Slug
    Custom Query Var Slug
    Show in Menu (i.e. I did not enter a ‘The top-level admin menu page file name for which the post type should be in the sub menu of’)

    *Capability Type has the default of ‘post’ only.

    I have checked ON all the ‘Support’ checkboxes. No ‘Custom Supports’ has been inserted by me. Also have not checked ON any taxonomies yet for it.

    I am currently attempting to resolve with my theme provider also. The problem is occurring in another separate custom post type I have registered for testing in the functions file too.

    thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Bringing up the topic/support need with the theme provider is the appropriate approach here since we have zero interaction with the post meta saving process or any interaction with custom meta boxes. It’s definitely something on their end going on. Hopefully they can help you out soon ??

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ever figure this one out @ratamatcat ?

    Thread Starter ratamatcat

    (@ratamatcat)

    Hey MB,

    Yeah there was a bug in the theme. The developer provided a fix in the block-editor.js file

    https://github.com/tomusborne/generatepress/commit/b736612964ef5b2c676fd9e0b1a64d8e4a6294ba

    I thought it might be worthwhile posting here because in my setup of CPT-UI, I left those fields mentioned empty and wasn’t sure if that created any blatant problems.

    I’ve still got your plugin installed (Tom suggested I install it for testing for this issue). I have some CPT code in my site specific plug-in I originally set up that works ok.

    Thanks for checking,

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sounds like everything is back in place where it needs to be, and glad the theme developer was able to chip in and help resolve this.

    Let us know if you need anything else.

    Thread Starter ratamatcat

    (@ratamatcat)

    Thanks brother,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post meta not updating’ is closed to new replies.