different tag different stylesheet

function register_tag_styles() { wp_register_style( ‘tag-circulair-template’, get_stylesheet_directory_uri() . ‘/layout-circulair.css’ ); wp_register_style( ‘tag-circulair-kantoor-template’, get_stylesheet_directory_uri() . ‘/layout-circulair.css’ ); } add_action( ‘wp_enqueue_scripts’, ‘register_tag_styles’ ); This code does the trick for me, but i think it’s too complicated when i have more than 10 tags with different stylesheets…..

Remove line breaks in wp_list_categories()?

I came to a solution for this by reviewing the WordPress Codex. The trick is to turn off the automatic echo of wp_list_categories, and then use str_replace(). My example follows: <?php $variable = wp_list_categories(‘child_of=270&style=none&echo=0’); ?> <?php $variable = str_replace(‘<br />’, ”, $variable); ?> <?php echo $variable; ?> The only real change in your query is … Read more