Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm not including the wp_head() call in my header.php, but I would like to include the feed links for each post.

Is it possible to call wp_head() with arguments only to include specific functionality? Or alternately, can you call specific functionality (admin toolbar css, feed links, etc) directly?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

all wp_head() does is run all the actions attached to it:

function wp_head() {
    do_action('wp_head');
}

you can call get_feed_link() directly.

however -

it's important to note you're going to break most plugins by not calling wp_head() a better route may be to just remove_action on all the things you don't want in wp_head(). look in wp-includes/default-filters.php for all the actions attached to it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.