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 thewp_list_cats
tag (above).Help? Would be appreciated.
-scott
- The topic ‘PHP command within another PHP command’ is closed to new replies.