Change number of columns using filter not working
-
Hey
I just tried to change the number of columns using the suggested code found here (https://docs.woothemes.com/document/change-the-number-of-project-columns-on-archives/) in functions.php of my child theme but it doesn’t work.
add_filter( 'projects_loop_columns', 'jk_projects_columns' ); function jk_projects_columns( $cols ) { $cols = 3; return $cols; }
I tried copying archive-project and setting the value which works but would prefer to just use the filter. Any idea why the code might not be working?
Thanks,
Greg
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change number of columns using filter not working’ is closed to new replies.