WordPress.org

Forums

Allow PHP in Posts and Pages
[resolved] Change title of the page dynamically (2 posts)

  1. alexp83
    Member
    Posted 2 years ago #

    Hi,

    I would like to change the html title of the page dynamically from within the Allow PHP In Posts And Pages Plugin. Is that possible?

    Best

    Alex

    http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/

  2. Hit Reach
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Alex

    The plugin is for executing php within the post content, the <title> tag will already have been prepared by this point, you could use Allow PHP in Posts and Pages to output JavaScript to change the page title, but its perhaps better to make use of the WP filters for the title.

    for more information on filters see: http://codex.wordpress.org/Plugin_API/Filter_Reference

    Hope this helps,
    Hit Reach

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Allow PHP in Posts and Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.