Created
December 16, 2012 14:04
-
-
Save samikeijonen/4307581 to your computer and use it in GitHub Desktop.
Show downloads only from 'themes' category. Taxonomy is called 'download_category'.
This file contains 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 | |
/* Show downloads only from 'themes' category. Taxonomy is called 'download_category'. */ | |
add_filter( 'kultalusikka_front_page_download_arguments', 'my_front_page_arguments' ); | |
function my_front_page_arguments( $download_args ) { | |
$download_args['tax_query'] = array( | |
array( | |
'taxonomy' => 'download_category', | |
'field' => 'slug', | |
'terms' => 'themes' | |
) | |
); | |
return $download_args; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment