WordPress.org

Forums

[resolved] Can't get the_title_attribute to return for php (3 posts)

  1. richarduk
    Member
    Posted 4 years ago #

    I've tried endless variations on the_title_attribute(0) but can't get it to return values for php. I'm using it within a loop, and all it does is echo e.g. there should be no output, but there is.

    <?php the_title_attribute( 0 ) ?>

    Any help appreciated.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    <?php the_title_attribute (array('echo' => 0) );?>

  3. richarduk
    Member
    Posted 4 years ago #

    Genius!

    That saved my bacon :-)

Topic Closed

This topic has been closed to new replies.

About this Topic