Display read only info on admin, custom post page

add_action( ‘edit_form_after_title’, ‘my_edit_form_after_title’); function my_edit_form_after_title($post) { $post_types = array( ‘page’ ); // post type / s $templates = array( ‘template-custom.php’ ); // not edit 😀 if( !in_array( $post->post_type, $post_types) ) return; if( !in_array( get_page_template_slug(), $templates) ) return; global $_wp_post_type_features; foreach ($post_types as $post_type) { if( isset($_wp_post_type_features[ $post_type ][‘editor’]) ) { unset($_wp_post_type_features[ $post_type ][‘editor’]); // we … Read more

single-{post-type}.php

Based on the amount of times you missed the c from the word project… my first recommendation would be to check for typos in your code/file names 🙂 Try updating permalinks in here: /wp-admin/options-permalink.php. Just hit update, and see if that solves the problem. Also, see if any errors are getting reported, open up wp-config … Read more

How to create a custom post while submitting the form

Which plugin you’re using for the contact form? It looks likeyou’re thinking about Gravity forms. You can create it with a custom function when the action gform_after_submission is fired – https://www.gravityhelp.com/documentation/article/gform_after_submission/ For Contact form 7, there is another hook, see here: wpcf7_before_send_mail, wpcf7_mail_sent http://hookr.io/plugins/contact-form-7/4.3/ Ninjaforms…http://hookr.io/plugins/ninja-forms/2.9.28/#index=a for the other plugins you should have a look yourself. … Read more