• Resolved Neilisin

    (@neilisin)


    I’m finding the title and photo fields are being “forgotten” between saves and re-editing.

    Instead of displaying the title/photo I’m getting this in the title value:

    <?= esc_attr( get_the_author_meta( ‘title’, $user->ID ) ); ?>

    and in the photo field:

    <?= esc_attr( get_the_author_meta( ‘photo’, $user->ID ) ); ?>

    I did try replacing the <?= with <?php in the plugin, but that didn’t do the job. Any suggestions?

    http://wordpress.org/plugins/people-page/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jethin

    (@jethin)

    Hi Neilisin,

    It sounds like your server is printing the php code you listed above as plain text in the title and photo form fields on the user edit page, correct? If so then I think you were close: the problem is likely the short tag, but you’d need an echo statement to get the actual value to appear. So, replace:

    <?=

    with

    <?php echo

    Please give that a try and let me know if it solves your issue. If it does I’ll update the plugin to include this fix. Thanks.

    Thread Starter Neilisin

    (@neilisin)

    Hi there, that fixed it! Thanks for the tip! 🙂

    Plugin Author jethin

    (@jethin)

    You bet Neilisin, glad that did the trick.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Additional Information’ is closed to new replies.