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 | |
| /** | |
| * DISPLAY NUMBERS | |
| * | |
| * Convert raw numbers into human-readable words. | |
| * | |
| * Borrowed (and very much simplified) from: | |
| * http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/ | |
| * @param integer $number Raw number. | |
| * @return string Number as a word. |
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 | |
| /* | |
| Plugin Name: Custom Registration | |
| Description: Updates user rating based on number of posts. | |
| Version: 1.1 | |
| Author: Tristan Slater w/ Agbonghama Collins | |
| Author URI: http://kanso.ca | |
| */ |
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 | |
| $tour_pages = get_posts( | |
| array( | |
| 'post_type' => 'tour', | |
| 'meta_query' => array( | |
| array( | |
| 'key' => 'tour_author_relationship', // name of custom field | |
| 'value' => '"' . get_the_ID() . '"', | |
| 'compare' => 'LIKE' | |
| ) |