Skip to content

Commit

Permalink
Merge pull request #343 from zymeth25/fix-conditional-title
Browse files Browse the repository at this point in the history
Move conditional title out of the list wrapper
  • Loading branch information
picandocodigo authored Sep 19, 2018
2 parents fdc54f0 + ebeb8a4 commit 9f2217d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/lcp-catlistdisplayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ private function build_output($tag){

$this->get_category_description();

$this->lcp_output .= $this->get_conditional_title();

$this->lcp_output .= '<' . $tag;

// Follow the numner of posts in an ordered list with pagination
Expand All @@ -127,8 +129,6 @@ private function build_output($tag){
$this->lcp_output .= '>';
$inner_tag = ( ($tag == 'ul') || ($tag == 'ol') ) ? 'li' : 'p';

$this->lcp_output .= $this->get_conditional_title();

//Posts loop
global $post;
while ( have_posts() ) : the_post();
Expand Down

0 comments on commit 9f2217d

Please sign in to comment.