Changed 404 Content and Wrecked Page

All I did was substitute some text in my 404 page, and now the text doesn’t show up. Can anyone tell me what’s wrong with this code?

[php]

<?php // ============================================================================= // VIEWS/GLOBAL/_CONTENT-404.PHP // ----------------------------------------------------------------------------- // Output for the 404 page. // ============================================================================= ?>

<?php _e( 'The search engine has sent you to a page that is no longer here, or never existed in the first place (bummer). That's the problem with using something like Google or Bing to search for homes. Your best bet is to stay on this website to conduct your search. Our stuff is always up-to-date. Just click Find Georgia Properties on our main menu.', '__x__' ); ?>

<?php get_search_form(); ?> [/php]

Try using double quotes " around the string. You have a single ’ in your statement that is probably throwing an error.

for starters all the code has // in front of it so it is a blank php command, right?

Incorrect.

I had to look it up but _e() is a WordPress function so it is valid. The issue probably extends because of the types of quotes intermingled.

I’ve updated your post to so you can see the color coding. Look at where the text string changes from red to blue. There is your syntax error.

Just escape the single quote with a backslash in : That’s TO: That’s or use double quotes at the start and end of your code

Sponsor our Newsletter | Privacy Policy | Terms of Service