Rewrite rules for custom post type

You need to look at add_rewrite_tag() and add_rewrite_rule() Also read this and this topics. They are very close to you issue. After you setup rewrite rule don’t forget to flush rules add_action( ‘wp_loaded’,’my_flush_rules’ ); // flush_rules() if our rules are not yet included function my_flush_rules(){ $rules = get_option( ‘rewrite_rules’ ); $pattern = ‘news/([^/]+)?’; // the … Read more

What is the parameter : ‘Customs-fields’

first you need to understand the support parameter, so from the codex: Register support of certain features for a given post type(s). All features are directly associated with a functional area of the edit screen, such as the editor or a meta box. Additionally, the ‘revisions’ feature dictates whether the post type will store revisions, … Read more

Post type to calendar

Basically you have to write a piece of php code to read your events and write it out in ics format. (Just like writing out a template but a bit different). WordPress has actions/functions to add a feed and provide a hook that produces the text. You also need to make sure that you adjust … Read more