WordPress.org

Ready to get started?Download WordPress

Forums

People Page
[resolved] Additional Information (4 posts)

  1. Neilisin
    Member
    Posted 12 months ago #

    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/

  2. jethin
    Member
    Plugin Author

    Posted 12 months ago #

    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.

  3. Neilisin
    Member
    Posted 12 months ago #

    Hi there, that fixed it! Thanks for the tip! :)

  4. jethin
    Member
    Plugin Author

    Posted 12 months ago #

    You bet Neilisin, glad that did the trick.

Reply

You must log in to post.

About this Plugin

About this Topic