grid view on page-of-post.php
-
I’m working on integrating the grid view on the post of my pageofpost template,
so far I found an article on adding a class to output through fiunction.php ( https://www.transformationpowertools.com/wordpress/posts-in-two-columns-twenty-twelve ),
but that also targets my page content…I’d like to integrate something to the function post_class filter in order to exclude the page-content..
this is what I added to functions
add_filter('post_class','category_three_column_classes'); function category_three_column_classes( $classes ) { global $wp_query; if( is_page(xxxx) ) : $classes[] = 'three-column-post'; if( $wp_query->current_post%3 == 0 ) $classes[] = 'column-post-left'; endif; return $classes; }
anybody have any ideas ?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘grid view on page-of-post.php’ is closed to new replies.