Title: Various theme coding issues.
Last modified: August 18, 2016

---

# Various theme coding issues.

 *  [grypesagon](https://wordpress.org/support/users/grypesagon/)
 * (@grypesagon)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/various-theme-coding-issues/)
 * I’m sorry if these codes are addressed somewhere but I’ve been reading through
   everything since 3 and it’s 6 now and although I’ve solved most of my own issues
   I just can’t find the right combinations for the last few.
    ————————————————–
   First: I’m trying to alter my category template to adhere to the following logic.
 * if this is a parent category list the children of self
    if this is a child category
   list the posts within self ————————————————– Second: Is there a code that, when
   viewing a single.php generated single post, will echo the category title or category
   description of the category the post is listed under? ————————————————– Third:
   Is there a code that, when viewing a page.php generated page, will echo the page
   title? (I know this one should’ve been easy but I just can find it.)
 * Thanks

The topic ‘Various theme coding issues.’ is closed to new replies.

## Tags

 * [children](https://wordpress.org/support/topic-tag/children/)
 * [parent](https://wordpress.org/support/topic-tag/parent/)
 * [single](https://wordpress.org/support/topic-tag/single/)

 * 0 replies
 * 1 participant
 * Last reply from: [grypesagon](https://wordpress.org/support/users/grypesagon/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/various-theme-coding-issues/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
