• Resolved Hazel Z.

    (@cadencehart)


    Hi! I need help on how to customize the Post Titles on the Profile Page without editing posts-single.php file.

    My website is setup in such a way that the date (month, day, year) specified by Authors through custom input fields is taken and outputted as the Post Title.

    Everything works great in all of my pages except on the Posts shown under the Author Profile page.

    In posts-single.php… the title is displayed through this code:

    <div class="um-item-link">
      <i class="um-icon-ios-paper"></i>
      <a href="<?php echo esc_url( get_permalink( $post ) ); ?>"><?php echo esc_html( $post->post_title ); ?></a>
    </div>

    However, in my functions.php, the post title is filtered as:

    $title = $monthoftheyear .' '. $dayoftheweek2 .', '. $yearnow .' ('. $nameOfDay .')';

    Currently, the Profile page does not output this format. Thank you for the assistance.

    • This topic was modified 4 years ago by Hazel Z..
    • This topic was modified 4 years ago by Hazel Z..
    • This topic was modified 4 years ago by Hazel Z..
    • This topic was modified 4 years ago by Hazel Z..
    • This topic was modified 4 years ago by Hazel Z..
    • This topic was modified 4 years ago by Hazel Z..
    • This topic was modified 4 years ago by Hazel Z..
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customize Post Titles on Profile Page’ is closed to new replies.