Title: PHP command within another PHP command
Last modified: August 18, 2016

---

# PHP command within another PHP command

 *  Resolved [scottwallick](https://wordpress.org/support/users/scottwallick/)
 * (@scottwallick)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/php-command-within-another-php-command/)
 * I have a php-related quesiton. Basically, I have a theme I would like to release,
   but part of that theme requires a feed icon for the category list. My code is
 * `<h2>Category Archives</h2>
    <ul> <?php wp_list_cats('sort_column=name&optioncount
   =1&feed=(RSS)&feed_image=http://www.blog.com/wp-content/themes/plaintxtCMS/feed.
   png&hierarchical=1'); ?> </ul>
 * I’d like to have a php command within there so that I didn’t have to tell folks
   who are downloading the theme to change the directory (it’s used more than a 
   couple times).
 * I’m familiar with `<?php bloginfo('stylesheet_url'); ?>` but I just don’t have
   the php knowledge to know how to include it with the command above. Ideally I’d
   like `<?php bloginfo('stylesheet_url'); ?>/feed.png` to be used, but (of course)
   get errors with I just throw it into the `wp_list_cats` tag (above).
 * Help? Would be appreciated.
 * -scott

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/php-command-within-another-php-command/#post-339975)
 * `...&feed_image='.get_bloginfo('stylesheet_url').'/feed.png&...`
 * soemthing like that. though, you might want ‘template_url’ actually… play around
   til you find the right bloginfo. 😉
 * -d
 *  Thread Starter [scottwallick](https://wordpress.org/support/users/scottwallick/)
 * (@scottwallick)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/php-command-within-another-php-command/#post-339998)
 * David,
 * Thanks for your quick response and perfect answer. So I just learned something
   I’d been wanting to use for some time now. Cheers. Also, I went with `'template_url'`
   as suggested. Worked great. Appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP command within another PHP command’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [scottwallick](https://wordpress.org/support/users/scottwallick/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/php-command-within-another-php-command/#post-339998)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
