WordPress.org

Ready to get started?Download WordPress

Forums

wp-Typography
This plugin still processes title tag? (6 posts)

  1. iwanttobelieve
    Member
    Posted 4 years ago #

    I love this plugin, yes :).

    I have read your FAQ and I found this:
    Why does fil­ter­ing by HTML ele­ment, class or id not pre­vent processing?
    wp-​​Typography does not have access to HTML stored in your theme files. It only has access to the con­tent passed to it (i.e. post Title and Con­tent); it is unable to deter­mine the greater con­tex­tual aware­ness...

    But I use wp_title to generate my page's title, is there any thing I can do to prevent wp-typography from processing <title></title>? I am using: <title>wp_title($args);</title>

    Please advise. Thanks!

    http://wordpress.org/extend/plugins/wp-typography/

  2. kingjeffrey
    Member
    Plugin Author

    Posted 4 years ago #

    If you hardcode content into your theme, wp-Typography is unable to access or modify that content. But when the content is accessed from the database, the WordPress functions apply certain filters to that content. wp-Typography works by hooking filters onto these functions.

    wp-Typography does not explicitly hook to the wp_title() function, but the wp_title() function apparently (though I have not verified) pulls in all filters used by the the_title() function (which wp-Typography does target). If you do not like the behavior of WordPress in this instance, there is a workaround.

    wp_title() accepts a second parameter that allows you to get the results (rather than echo them). This allows you to modify the results using any PHP function you wish, before you manually echo it. See http://codex.wordpress.org/Function_Reference/wp_title for the documentation regarding this parameter.

  3. kingjeffrey
    Member
    Plugin Author

    Posted 4 years ago #


  4. iwanttobelieve
    Member
    Posted 4 years ago #

    Thank you!

    The new version has also fixed this issue, excellent work!

  5. kingjeffrey
    Member
    Plugin Author

    Posted 4 years ago #

    You are quite welcome.

  6. mkalina
    Member
    Posted 3 years ago #

    I have version 2.0.2 installed on WP 3.0.3 with the Hybrid-Framework by Justin Tadlock. My title-tags, although listed as not being processed, are still processed (see here, eg.)... Any ideas? Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic