• WR ContactForm 1.1.11
    Found workaround for error “You are not allowed to edit posts in this post type.

    Edit: wr-contactform/helpers/action-hook.php

    Find line 535: public static function register_post_type() {

    Go to line 574:
    ‘slug’ => ‘wr_cfsb_post_type’,

    Under line 575: ‘options’ => array(

    Go to line 582:
    ‘supports’ => array( ‘title’ ),
    ‘public’ => false,
    ‘has_archive’ => false,
    ),
    Change and Add two new lines in options array:
    ‘supports’ => array( ‘title’ ),
    ‘public’ => false,
    ‘has_archive’ => false,
    ‘show_ui’ => true,
    ‘show_in_menu’ => false,
    ),

    The Submissions should now function and show in admin page.

    The email notification’s are still not working.
    If someone could help with that it would be great!

    https://wordpress.org/plugins/wr-contactform/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thx, for your help, now i have no fail, but i get a blank white page now, if i click show source code, than i see that are all the stuff, but it doesnt show. Maybe you know a aditional way?

    Thank you for this! It worked, I am able to view the submission page 🙂

    I am currently experiencing the same issue as @xxfreshman. I was getting the error “You are not allowed to edit posts in this post type”. I then followed the steps provided by @trawp and it resolved the error, but now I too am getting a blank white screen. If I view the source, I can see the submissions, but obviously, this isn’t ideal.

    @knsmunts: This is not your topic. If you require assistance then, as per the Forum Welcome, please post your own topic.

    @knsmunts i found out what maked my prb, you are not alowed to use special char like ‘; and some others in the lables for the fields. the prb is that the software use the lable names as sql field names too, and that lets the code crashing it.

    cu

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @xxfreshman, Please never post a thousand lines of code in these forums. It’s not useful for anyone.

    @andrew Nevins ??? oh, sorry, i didnt know that iam posting a code here 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘You are not allowed to edit posts in this post type ERROR WorkAround’ is closed to new replies.