Support » Plugin: Yoast SEO » Title issues with classipress theme

  • After the 0.4.1 upgrade post titles show the author name when used with the classipress theme. This issue was fixed in a earlier version. But it has come back in the new version.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Classipress is a premium theme so I can’t see the markup

    Where does the author show up as the title?
    On your frontpage/blog-page?
    On single posts?
    On archive pages?
    On pages
    Or on all four?

    What code have you got in The Loop on in the affected templates?

    Issue is only in the single ad page which is a custom post type. This issue was there in earlier versions of the plugin. But it was fixed with previous update. With the new update it has come up again.

    here is the code within the loop in single ad page.

    <?php if(have_posts()) : ?>
    			<?php while(have_posts()) : the_post() ?>
    				<?php appthemes_stats_update($post->ID); //records the page hit ?>
    				<div class="shadowblock_out">
    					<div class="shadowblock">
    						<div class="price-wrap">
    							<span class="tag-head">&nbsp;</span><p class="post-price"><?php if(get_post_meta($post->ID, 'price', true)) cp_get_price_legacy($post->ID); else cp_get_price($post->ID); ?></p>
                            <?php endif;?><!--close ispriced started in line 50-->
    							<h1 class="single-ad"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
    							<div class="pad5 dotted"></div>
    							<div class="bigright">
    									// grab the category id for the functions below
    									$cat_id = appthemes_get_custom_taxonomy($post->ID, 'ad_cat', 'term_id');
    									// check to see if ad is legacy or not
    									if(get_post_meta($post->ID, 'expires', true)) {  ?>
    										<li><span><?php _e('Location:', 'appthemes') ?></span> <?php echo get_post_meta($post->ID, 'location', true); ?></li>
    										<li><span><?php _e('Phone:', 'appthemes') ?></span> <?php echo get_post_meta($post->ID, 'phone', true); ?></li>
    										<?php if(get_post_meta($post->ID, 'cp_adURL', true)) ?>
    											<li><span><?php _e('URL:','appthemes'); ?></span> <?php echo appthemes_make_clickable(get_post_meta($post->ID, 'cp_adURL', true)); ?></li>
    										<li><span><?php _e('Listed:', 'appthemes') ?></span> <?php the_time(get_option('date_format') . ' ' . get_option('time_format')) ?></li>
    										<li><span><?php _e('Expires:', 'appthemes') ?></span> <?php echo cp_timeleft(strtotime(get_post_meta($post->ID, 'expires', true))); ?></li>
    									} else {
    										if(get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes') : ?>
    										<li id="cp_sold"><span><?php _e('This item has been sold', 'appthemes'); ?></span></li>
    										<?php endif; ?>
    										// 3.0+ display the custom fields instead (but not text areas)
    										cp_get_ad_details($post->ID, $cat_id);
    										<li id="cp_listed"><span><?php _e('Listed:', 'appthemes') ?></span> <?php the_time(get_option('date_format') . ' ' . get_option('time_format')) ?></li>
    										<?php if (get_post_meta($post->ID, 'cp_sys_expire_date', true)) ?>
    											<li id="cp_expires"><span><?php _e('Expires:', 'appthemes') ?></span> <?php echo cp_timeleft(strtotime(get_post_meta($post->ID, 'cp_sys_expire_date', true))); ?></li>
    									} // end legacy check
    							</div><!-- /bigright -->
    					<?php if(get_option('cp_ad_images') == 'yes'): ?>
    						<div class="bigleft">
    							<div id="main-pic">
    								<?php cp_get_image_url(); ?>
    								<div class="clr"></div>
    							<div id="thumbs-pic">
    								<?php if(get_post_meta($post->ID, 'images', true)) echo cp_get_image_thumbs_legacy($post->ID, get_option('thumbnail_size_w'), get_option('thumbnail_size_h'), $post->post_title); else cp_get_image_url_single($post->ID, 'thumbnail', $post->post_title, -1); ?>
    								<div class="clr"></div>
    						</div><!-- /bigleft -->
    					<?php endif; ?>
    				 <div class="clr"></div>
    					<div class="single-main">
    						// 3.0+ display text areas in content area before content.
    						cp_get_ad_details($post->ID, $cat_id, 'content');
    						<h3 class="description-area"><?php _e('Description','appthemes'); ?></h3>
    						<?php the_content(); ?>
    						<div class='note'><strong><?php _e('Ad Reference ID:','appthemes'); ?></strong> <?php if(get_post_meta($post->ID, 'cp_sys_ad_conf_id', true)) echo get_post_meta($post->ID, 'cp_sys_ad_conf_id', true); else echo __('N/A', 'appthemes'); ?></div>
    						 <div class="dotted"></div>
    						 <div class="pad5"></div>
    					<div class="prdetails">
    						<p class="tags"><?php if(get_the_term_list($post->ID, 'ad_tag')) echo get_the_term_list($post->ID, 'ad_tag', '', '&nbsp;', '' ); else echo __('No Tags', 'appthemes'); ?></p>
    						<?php if (get_option('cp_ad_stats_all') == 'yes') { ?><p class="stats"><?php appthemes_stats_counter($post->ID); ?></p> <?php } ?>
    						<p class="print"><?php if(function_exists('wp_email')) { email_link(); } ?>&nbsp;&nbsp;<?php if(function_exists('wp_print')) { print_link(); } ?></p>
                        <p><?php if(function_exists("wpfblike")) echo wpfblike(); ?></p>
    					<?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>
                        <?php if(function_exists('selfserv_sexy')) { selfserv_sexy(); } ?>
                                </div><!-- /shadowblock -->
                            </div><!-- /shadowblock_out -->
    			<?php endwhile; else: ?>
    <p><?php _e('Sorry, no listings matched your criteria.','appthemes'); ?></p>
                            <?php endif; ?>
                            <div class="clr"></div>

    And the author is showing between the <h1></h1> tags?
    Or between the <title></title> tags?

    <title></title> tags

    Is this what you’ve got in your header.php?

    <title><?php wp_title(”); ?></title>

    It’s like this

    <title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title>

    Is that the issue?

    Could be.

    I don’t see why it should to be honest, but when using Yoast’s WordPress SEO plugin most of what you have between the <title> tags is redundant as all of that can be handled by the plugin.

    Obviously backup first then…

    Try replacing what you’ve got with <title><?php wp_title(''); ?></title>
    Then, go >> SEO plugin settings >> Titles and set your homepage, post and page title templates to %%title%% | %%sitename%% or play around with each one as you want until you’re happy.

    I tend to go for:

    Homepage: %%sitename%% | %%sitedesc%%
    Post: %%title%% | %%sitename%%
    Page: %%title%% | %%sitename%%

    Thanks a lot for your assistant

    I just managed to fix it 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Title issues with classipress theme’ is closed to new replies.