Created
May 29, 2014 05:27
-
-
Save johnbuck/3c712d93cdde0d22bf00 to your computer and use it in GitHub Desktop.
Change the number of columns displayed by the Projects by WooThemes plugin
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
add_filter( 'projects_loop_columns', 'change_projects_columns', 99 ); | |
function change_projects_columns( $columns ) { | |
$cols = 3; | |
return $columns; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an error in the variable code above (should be $columns in this instance) so it didn't work for me, pulled this one from the documentation and works well.