WordPress.org

Ready to get started?Download WordPress

Forums

Post Title Just Stopped Displaying! (3 posts)

  1. twilitegxa
    Member
    Posted 2 years ago #

    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?

  2. 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
  3. twilitegxa
    Member
    Posted 2 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.