- Create a hierarchical post type
- Add a post under that post type called '1990'
- Slug is created with -2 on the end even if a similar post doesn't already exist i.e. 1990-2
Doesn't happen for non-hierarchical post types
| <h2>NEWS</h2> | |
| <p> </p> | |
| <p><span style="color: #64add2;"><strong><a href="/web/20130729180519/http://www.nostrings.org.uk/wp/wp-content/uploads/2013/05/Hagurosan-cover.jpg"><img class="alignleft size-thumbnail wp-image-2943" alt="Hagurosan cover" src="/web/20130729180519im_/http://www.nostrings.org.uk/wp/wp-content/uploads/2013/05/Hagurosan-cover-126x100.jpg" width="126" height="100"></a></strong></span><span style="color: #64add2;"><strong><a href="/web/20130729180519/http://www.nostrings.org.uk/king-of-fantasy-darren-shans-new-novel-hargusan-raising-funds-for-no-strings/"><span style="color: #64add2;">Hagurosan, Darren Shan’s new book, out now!</span></a></strong></span> With all profits from Darren’s long-awaited new novel generously donated to No Strings. A terrific adventure from the master of fantasy, and one of the most successful authors writing today. <span style="color: #64add2;"><a href="/web/20130729180519/http://www.nostrings.org.uk/king-of-fantasy-darren-shans-new-novel-hargusan-raising |
| <?php | |
| function remove_cssjs_ver( $src ) { | |
| if( strpos( $src, '?ver=' ) ) { | |
| $src = remove_query_arg( 'ver', $src ); | |
| } | |
| return $src; | |
| } | |
| add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); | |
| add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 ); |
| <?php | |
| function rmt_exclude_yoast_resource_centre( $plugins ) { | |
| if ('' == sanitize_text_field($_GET['op'])) { | |
| return $plugins; | |
| } | |
| $key = array_search('wordpress-seo/wp-seo.php', $plugins); | |
| unset( $plugins[$key] ); |
| <?php | |
| function maybe_filter_content() { | |
| if ('' != sanitize_text_field($_GET['op'])) { | |
| add_filter("the_content", "rc_content_handler"); | |
| } | |
| } | |
| add_action('init', 'maybe_filter_content'); |
| <?php | |
| function stomp_add_editor_styles() { | |
| add_editor_style( 'css/editor-style.css' ); | |
| } | |
| add_action( 'admin_init', 'stomp_add_editor_styles' ); |
| gulp.task('editor-style', function() { | |
| return gulp | |
| .src('css/editor-style.less') | |
| .pipe(less()) | |
| .pipe(autoprefixer('last 2 version', "> 1%", "ie 8")) | |
| .pipe(minify()) | |
| .pipe(gulp.dest('css')) | |
| .pipe(notify({ message: 'Editor Style Compiled'})); |
| @import "style-guide.less"; | |
| @import "variables.less"; | |
| #tinymce { | |
| .style-guide(); | |
| } |
| @import "style-guide.less"; | |
| @import "variables.less"; | |
| body { | |
| font-size: 15px; | |
| } | |
| h1, | |
| h2, | |
| h3 { |
| .style-guide() { | |
| font-family: @body-font; | |
| h2, | |
| h3 { | |
| font-family: @header-font; | |
| } | |
| h2 { | |
| font-weight: 300; |