Title: [Plugin: Comic Easel] What is function for displaying &#039;chapter&#039;
Last modified: August 20, 2016

---

# [Plugin: Comic Easel] What is function for displaying 'chapter'

 *  [spearfrost](https://wordpress.org/support/users/sprsrfrost/)
 * (@sprsrfrost)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-comic-easel-what-is-function-for-displaying-chapter/)
 * Hell all,
 * Thank you so much for the time you are taking to help me. I truly appreciate 
   it. I am currently working on a comic website and integrating/changing/fixing
   ALOT of things. I do have one simple problem I am not understanding. If it helps
   I am a complete newbie to wordpress. My website > [My website](http://velvetbunny.com/blog/?comic=page-one)
 * In the Comic easel plugin in the category are now chapters, locations, characters..
   etc. I would like to write the php function on how to display my current category
   and sub-category in my posts [(provided in this image link)](http://img.photobucket.com/albums/v304/spearfrost/howto_zps9c790842.png)
 * This is the functions shortcode. I have no clue (please bear with me), but I 
   believe it will of some use.
 *     ```
       function ceo_archive_list_single($chapter = 0, $order = 'ASC', $thumbnail = 0) {
       	$output = '';
       	// get chapter from ID#
       	$single_chapter = get_term_by('term_id', $chapter, 'chapters');
       	if (is_null($single_chapter)) { echo "Invalid Chapter Specified"; return; }
       	$output .= '<div class="comic-archive-chapter-wrap">';
       	$output .= '<h3 class="comic-archive-chapter">'.$single_chapter->name.'</h3>';
       	$output .= '<div class="comic-archive-image-'.$single_chapter->slug.'"></div>';
       	$output .= '<div class="comic-archive-chapter-description">'.$single_chapter->description.'</div>';
       	$args = array(
       			'numberposts' => -1,
       			'post_type' => 'comic',
       			'orderby' => 'post_date',
       			'order' => $order,
       			'post_status' => 'publish',
       			'chapters' => $single_chapter->slug
       		);
       	$qposts = get_posts( $args );
       	$archive_count = 0;
       	if ($thumbnail) {
       			$output .= '<div class="comic-archive-thumbnail">'.get_the_post_thumbnail($qposts[0]->ID, 'thumbnail').'</div>';
       	}
       	$output .= '<div class="comic-archive-list-wrap">';
       	$css_alt = false;
       	foreach ($qposts as $qpost) {
       		$archive_count++;
       		if ($css_alt) { $alternate = ' comic-list-alt'; $css_alt = false; } else { $alternate = ''; $css_alt=true; }
       		$output .= '<div class="comic-list comic-list-'.$archive_count.$alternate.'"><span class="comic-archive-date">'.get_the_time('M d, Y', $qpost->ID).'</span><span class="comic-archive-title"><a href="'.get_permalink($qpost->ID).'" rel="bookmark" title="'.__('Permanent Link:','comiceasel').' '.$qpost->post_title.'">'.$qpost->post_title.'</a></span></div>';
       	}
       ```
   

The topic ‘[Plugin: Comic Easel] What is function for displaying 'chapter'’ is closed
to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [spearfrost](https://wordpress.org/support/users/sprsrfrost/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-comic-easel-what-is-function-for-displaying-chapter/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
