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 | |
| $post_type = get_post_type( get_the_ID() ); | |
| get_template_part( 'headers/' . $post_type, 'header' ); | |
| ?> | |
| <!-- | |
| if your custom post type label is named 'support' for example | |
| this will include the contents of 'yourtheme/headers/support-header.php' | |
| Note: Fails silently so if file doesn't exist, nothing will be included. | |
| --> |
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
| // Add Shortcode to your functions.php | |
| function gist_shortcode( $atts ) { | |
| // Attributes | |
| $atts = shortcode_atts( | |
| array( | |
| 'name' => 'jonathanfann', | |
| 'slug' => 'ae707752f2f2c3f93e739838f8dce5c0', | |
| ), |
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
| [fields.body] | |
| label = Body | |
| type = markdown |
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
| {% for k,v in bag('career.quotes').iteritems() %} | |
| <div id="{{ k }}"> | |
| <div class="quote"> | |
| <h3>"{{ v.quote }}"</h3> | |
| <p><em>{{ v.name }}, {{ v.title }}</em></p> | |
| </div> | |
| </div> | |
| {% endfor %} |
NewerOlder