WordPress.org

Plugin Directory

Per page add to head

This plugin adds content between the head tags for specific WordPress posts, or every WordPress post.

1.3

  • Now stores HTML for every page as a WordPress option in the database, instead of as a separate file (fixing problems with WP multisite, but setting a maximum size to it equal to the maximum that WordPress can store inside an option)
  • Now correctly puts line returns in the database, instead of escaping them with %BREAK% (Note: %BREAK% is still being converted into \r\n) NOTE: If you want to use the changed way of storing items, you need to update the fields you want to store that way (change something in them, then change it back)
  • Blocks direct access to plugin files (unnecessary but asked for)
  • Probably fixed problems with persons being redirected to the login page when making changes (can't verify because can't replicate)

1.2.1

  • Fixed a critical installation error introduced in version 1.2

1.2

  • Added support for user roles: you can prevent certain user roles from editing the head segment. Note: administrators can't be excluded, and edit the "add head to every page" segment.
  • Added support for custom post types. Note: only works when the post type is displayed "like a page" NOTE: when updating from an older version to version 1.2, make sure you go to settings -> per page add to head, and check the roles and post types you want to use after the update. New installations will have administrator, page and post checked automatically, old ones receiving an update won't

1.1.2

  • Changes the output order to global content first, then page specific content.
  • Moves the per page add to head output down the queue on the wp_head hook, so the content is inserted at the end of the head tag

1.1.1

  • Includes Spanish translation thanks to Andrew Kurtis from WebHostingHub

1.1

  • Now supports l18n!
  • Includes Dutch translation.

1.0

  • Now uses $_SERVER superglobal to locate current page url
  • Now properly preserves whitespace. Whitespace is visible in the source code, as well as in the meta box of the posts
  • Compatibility with Evona Config Manager (to be released, allows you to keep this plugin from removing its config files upon deinstallation).

0.3

Fixed an issue that could occur when WordPress was hosted inside a subfolder of the domain

0.2 beta

Initial release for the WordPress plugin repository

Requires: 3.5 or higher
Compatible up to: 4.4.4
Last Updated: 7 months ago
Active Installs: 10,000+

Ratings

5 out of 5 stars

Support

3 of 4 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0
100,1,1
100,1,1
100,1,1
50,2,1
100,1,1
100,1,1
0,1,0
100,1,1