localization for Permalink

Under permalink settings you want to use Custom Structure you can then customise it using the structure tags see http://codex.wordpress.org/Using_Permalinks#Structure_Tags this would allow you to add post id and author to the permalink for example. /%year%/%monthnum%/%day%/%postname%/%postid%/%author%/ All depending on what you need if you can be more specific about what you mean by native numbers … Read more

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

Custom Field add markup to line breaks

I believe this is what you are after: // define $post_id, $key, $single $multipleLineValue = get_post_meta($post_id, $key, $single); // Convert into an array where desired code can be added to the output $multipleLineValue = explode(“\n”,$multipleLineValue); $output = “”; foreach ($multipleLineValue as $lineValue) { $output .= “<span>”.$lineValue.”</span><br>”; } echo $output;

Create custom fields on a post

I would add my Custom Post Type (Person). You can do this with register_post_type function. Then you have to add your custom fields. And the easiest way to do this will be Advanced Custom Fields plugin. It allows you to define additional custom field groups that will be added to posts (based on some rules). … Read more