Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //show the big grid
- if (get_query_var('paged')) {
- $paged = get_query_var('paged');
- } elseif (get_query_var('page')) {
- $paged = get_query_var('page');
- } else {
- $paged = 1;
- }
- if ($paged == 1) {
- $block_name = td_api_category_top_posts_style::get_key(get_class($this), 'td_block_name');
- $this->rendered_block_buffer = td_global_blocks::get_instance($block_name)->render($atts_for_big_grid);
- $this->rendered_posts_count = td_global_blocks::get_instance($block_name)->td_query->post_count;
- if ($this->rendered_posts_count > 0) {
- td_global::$custom_no_posts_message = false;
- }
- // use class_name($this) to get the id :)
- }
Advertisement
Add Comment
Please, Sign In to add comment