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 | |
/** | |
* This code saves an extra custom post field with a custom post type to WordPress | |
* Rian Rietveld - rrwd.nl | |
* Add this to the functions.php in your WordPress child theme | |
* | |
* Adding the priority 20 for the add_action to save_post is !important, otherwise it won't work | |
*/ | |
function rrwd_save_cpf_with_ctp ( $post_id, $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
<?php | |
/** | |
* This code adds a costom post type with it's own taxonomy to WordPress | |
* And adds an archive option to show the posts ordered by taxonomy name | |
* Rian Rietveld - rrwd.nl | |
* November 22, 2012 | |
* Add this to the functions.php in your WordPress child theme | |
* Here, as an example, the custom post type is book and the taxonony is genre | |
*/ |
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
.prefix-hidden { | |
background-color: #fff; | |
border: 1px solid #000; | |
display: block; | |
font-size: 1em; | |
left: -1000em; | |
padding: 0.8em; | |
position: absolute; | |
z-index: 10; | |
} |
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
/** | |
* WordPress Genesis Accessible skip links for screen readers and keyboard users | |
* Rian Rietveld - rrwd.nl | |
* Add this to style.css in the child theme for the Genesis Framework by StudioPress. | |
* The skip links are dependent on the selected page layout | |
*/ | |
a.skip-link { | |
background-color: #f2f9ff; |
NewerOlder