Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php while ( have_posts() ) : the_post(); ?>
- <?php
- // get the state name
- $state = '';
- $states = wp_get_post_terms( get_the_ID(), 'state' );
- if( $states ) {
- $state = ', ' . strtoupper( $states[0]->description );
- }
- $city_name = get_the_title();
- $title = $city_name . $state;
- ?>
- <title>Cash for Gold Near <?php the_title(); ?> - Find Gold Buyers Near <?php the_title(); ?></title>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement