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
| Currently I have: | |
| localhost/about/jobs - this works, displays list of job posts | |
| localhost/about/jobs/taxonomy - 404 error (even with taxonomy.php) | |
| localhost/about/jobs/job-post-title - works fine | |
| //Custom post type for jobs | |
| function bment_post_type_jobs() { | |
| register_post_type( | |
| 'jobs', array( | |
| 'labels' => array( |
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
| In WP functions.php: | |
| function get_post_id() { global $wp_query; $id = $wp_query->post->ID; return $id; } | |
| function opengraph_thumbnail(){ | |
| if (is_single()) { | |
| echo get_the_post_thumbnail(get_post_id()); | |
| } else { | |
| echo imagedir() ?>/about_better.png <?php ; | |
| } |
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
| Process: Adobe Photoshop CS6 [516] | |
| Path: /Applications/Adobe CS6/*/Adobe Photoshop CS6.app/Contents/MacOS/Adobe Photoshop CS6 | |
| Identifier: com.adobe.Photoshop | |
| Version: 13.0.0 (20120305.m.415) | |
| Code Type: X86-64 (Native) | |
| Parent Process: launchd [267] | |
| Date/Time: 2012-03-23 10:12:33.059 -0400 | |
| OS Version: Mac OS X 10.7.3 (11D50b) | |
| Report Version: 9 |
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
| Want my newsroom to be url.com/newsroom (currently throws a 404) | |
| Posts should be url.com/newsroom/post-title (currently works) | |
| Code in functions.php: | |
| // newsroom custom content type | |
| function bment_post_type_newsroom() { | |
| register_post_type( | |
| 'newsroom', array( | |
| 'labels' => array( |
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 an else statement in case the number is divisible by 5. | |
| // for the numbers 1 through 20, | |
| for (i=1; i<=20; i++) { | |
| // if the number is divisible by 3, write "Fizz" | |
| if ( i % 3 === 0 ) { | |
| // if the number is divisible by 3 and 5, write "FizzBuzz" | |
| if ( i % 5 === 0 ) { |
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
| <div id="wrapper"> | |
| <div id="content"{block:PermalinkPage} class="single"{/block:PermalinkPage}> | |
| {block:IndexPage}<div class="hellyeah">{/block:IndexPage} | |
| {block:Posts} | |
| {block:Photo} | |
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
| ...header and nav.. | |
| <div id="wrapper"> | |
| <div id="content"{block:PermalinkPage} class="single"{/block:PermalinkPage}> | |
| {block:IndexPage}<div class="hellyeah">{/block:IndexPage} | |
| {block:Posts} | |
NewerOlder