#My sample wp-config.php#
#My Sample .sublime-project#
- Cards represent tasks (with one exception, cards in the Reference list).
- Card titles should ideally contain a verb e.g. "Fix the apply button"
- Card descriptions should outline the task in more detail.
- Discussion related to the task should take place in the comments. This provides a record of decisions and the thought process surrounding the task.
- Checklists should be used to detail the steps toward completion of the task.
- Cards are not set in stone; whenever a task grows too big for a card, a new card can be created.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT DISTINCT(p.ID), p.post_title, p.post_content FROM `wp_posts` p | |
| LEFT JOIN wp_posts im ON p.ID = im.post_parent AND im.post_type = "attachment" | |
| WHERE p.post_status ='publish' | |
| AND p.post_type = "post" | |
| AND im.ID IS NULL | |
| AND p.post_content NOT REGEXP 'src=".*"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $connected_reviews = new WP_Query( array( | |
| 'connected_type' => 'nice_stuff', | |
| 'connected_items' => get_queried_object(), | |
| 'nopaging' => true, | |
| ) ); | |
| if ( is_singular( 'portfolio_item' ) && $connected_reviews->have_posts() ) : ?> | |
| <?php while ( $connected_reviews->have_posts() ) : $connected_reviews->the_post(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| module.exports = function(grunt) { | |
| // auto-load all grunt tasks matching the `grunt-*` pattern in package.json | |
| require('load-grunt-tasks')(grunt); // no need for grunt.loadNpmTasks! | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON( 'package.json' ), | |
| // watch for changes and trigger sass, jshint, uglify and livereload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE 'wp_term_taxonomy' SET 'taxonomy' = 'NEW_TAX_NAME' WHERE 'taxonomy' = 'OLD_TAX_NAME'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE `wp_posts` SET `post_type` = 'NEW_CPT_NAME' WHERE `post_type` = 'OLD_CPT_NAME'; |