Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function get_description()
- {
- 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) {
- if (!empty($this->current_category_obj->description)) { // is needed?
- return '<div class="td-category-description"><p>' . $this->current_category_obj->description . '</p></div>';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment