• The code I have has been working just fine on my site until I upgraded to the most recent version of WordPress, and I think that’s when I started experiencing problems. Now my code below that displays the post title will not display. I have the following code:

    <?php if(!is_page( array( 'home', 'about', 'about-batya', 'faq', 'other-articles', 'services', 'consulting-services', 'contact', 'oops-email-exists', 'oops-invalid-email','thankyou-confirmation', 'thankyou-signup', 'thanks', 'grateful-parents' ) )  ) { ?>
    						<div class="toptitle" style="margin-bottom: 15px;">
    						<span class="single-title"><a href="<?php the_permalink() ?>"><?php single_post_title(); ?></a></span>
    
    more code here

    I don’t understand what caused it to stop working exactly, but the rest of the code works on the page. Here is the url for reference: http://www.batyathebabycoach.com

    Can anyone help me fix it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Do you have the close } in there above the ‘more code here’ bit?

    <?php if(!is_page( array( 'home', 'about', 'about-batya', 'faq', 'other-articles', 'services', 'consulting-services', 'contact', 'oops-email-exists', 'oops-invalid-email','thankyou-confirmation', 'thankyou-signup', 'thanks', 'grateful-parents' ) )  ) { ?>
    						<div class="toptitle" style="margin-bottom: 15px;">
    						<span class="single-title"><a href="<?php the_permalink() ?>"><?php single_post_title(); ?></a></span>
    <?php } ?>
    
    more code here
    Thread Starter twilitegxa

    (@twilitegxa)

    It is actually further down. I just put more code in there to let you know that it continues on. The closing } is there though, and it was working just fine before the update, so I don’t know what happened:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Title Just Stopped Displaying!’ is closed to new replies.