[Support request] section not working anymore on CPT page

Home Forums Support [Support request] section not working anymore on CPT page

Home Forums Support section not working anymore on CPT page

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1268376
    jasond

    Hello

    I have enabled sections by adding snippets into functions.php and it worked well before. Now it’s not working anymore. Is there any reason for this?

    Thanks a lot

    #1268583
    David
    Staff
    Customer Support

    Hi there,

    there has been no update to effect that code. Do you have the Sidebar enabled for that page ?

    #1269847
    jasond

    Thanks for your reply. No, I don’t have any sidebars. I even created an Element layout to disable the sidebar.

    It worked well before although. Can I send you the login so you can have a look?

    Thanks

    #1270126
    David
    Staff
    Customer Support

    Sorry i sent the wrong reply….

    Is your GP Premium plugin up to date ?
    We patched a bug that the latest WP update introduced where the ‘classic’ editor gets displayed on posts / pages with Sections. You should still be able to access the Sections if you scroll down in the editor. Let me know.

    #1275034
    jasond

    Yes, GP Premium latest version, but strange that it didn’t work on any CPT page anymore

    #1275662
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Looks like you’ve set this as resolved – did you get it working?

    Thanks!

    #1275713
    jasond

    i’m sorry but it is still not working. Can I email you my site details?

    Thanks again

    #1276023
    Tom
    Lead Developer
    Lead Developer

    Try this:

    add_filter( 'generate_sections_post_types', function( $types ) {
        $types[] = 'your-cpt';
    
        return $types;
    } );

    Please refrain from setting un-resolved topics to “resolved”.

    Thanks!

    #1276256
    jasond

    Thanks, Tom but it is still not working!

    #1276574
    David
    Staff
    Customer Support

    Did you change the your-cpt to your CPT slug in this line: $types[] = 'your-cpt';

    #1276967
    jasond

    yes i did but still no luck

    #1276992
    Leo
    Staff
    Customer Support

    Can you disable all of your other custom functions to make sure there are no conflicts?

    That seems to be the problem with your other post.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.