How to duplicate “Pages” section in the control panel?

This should fairly closely mimic “Pages”. function gallery_type_custom_init() { $args = array( ‘public’ => true, ‘label’ => ‘Gallery’, ‘capability_type’ => ‘page’, ‘hierarchical’ => true, ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘excerpt’, ‘page-attributes’, ‘custom-fields’ ) ); register_post_type( ‘Gallery’, $args ); } add_action( ‘init’, ‘gallery_type_custom_init’ ); If you need this to use your custom page templates, though, … Read more

Customized Comment Form Issues

You can unset this field like that : function wpse_109744_comment_form_fields($fields) { if(isset($fields[‘url’])) unset($fields[‘url’]); } $fields [’email’] = ‘your markup’; $fields [‘author’] = ‘your markup’; $return $fields; add_filter(‘comment_form_default_fields’, ‘wpse_109744_comment_form_fields’) EDIT :

Custom single page based on which custom page template is selected

Yes it is possible using get_template_part(); Assuming that you use a standard single.php: <?php /* * Template name: template-blog-left * */ get_header(); ?> <div id=”left-sidebar”> <!– Here your left sidebar –> </div> <div id=”content”> <?php //This function will look for single.php file in your theme folder get_template_part( ‘single’ ); ?> </div> <?php get_footer(); ?>

add unique code required to register

Add a field on your registration form <label for=”secret_reg_code”>Secret Code: </label> <input type=”text” name=”secret_reg_code” id=”secret_reg_code” value=”” /> then in your plugin file or in function.php add define(‘MY_SECRET_REG_CODE’, ‘fdsfgadsfgdf’); function check_for_reg_secret_code($errors, $sanitized_user_login, $user_email) { if ( defined(‘MY_SECRET_REG_CODE’) && trim($_POST[‘secret_reg_code’]) != MY_SECRET_REG_CODE ) { $errors->add( ‘secret_code_error’, __(‘<strong>ERROR</strong>: Enter a valid code postal code.’, ‘your_text_domain’) ); } return … Read more

Adding pages to the Admin panel

If I get you correctly, you are trying to add a new menu to the Admin Panel. For that, the following tutorial would be one of the best for you to such: The Complete Guide To The WordPress Settings API (Part I – VIII) The key things are: add_menu_page() add_submenu_page() add_theme_page() – for theme options … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)