Simple Wordpress Problem

Status
Not open for further replies.

prateek

Banned
Banned
266
2009
72
0
I am getting the text Continue reading »" /> in the top most left corner
of the article's page

I am not getting this text in main page or in any other page

Please tell me which template file should i edit to fix this ???



see this screenshot for more info
[SLIDE]http://rapidrdp.com/image/screenshot-KTAboA.png[/SLIDE]


and

hi-lighted one
[SLIDE]http://rapidrdp.com/image/screenshot-M59P5U.png[/SLIDE]


Please tell me which template file should i edit to fix this ???
 
10 comments
Just search the index.php template for 'Continue' and edit as necessary. It will look something like this:

Code:
<?[I]php[/I] the_content('Continue Reading >>'); ?>

It should really be within the Wordpress loop, usually like this:

Code:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?[I]php[/I] the_content('Continue Reading >>'); ?>
<?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>
 
edit single.php, index.php

Just search the index.php template for 'Continue' and edit as necessary. It will look something like this:

Code:
<?[I]php[/I] the_content('Continue Reading >>'); ?>

It should really be within the Wordpress loop, usually like this:

Code:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?[I]php[/I] the_content('Continue Reading >>'); ?>
<?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>





@Desi_Boy and @okone

Checked index.php and single.php

there is not a single word with continue


see the content of single.php

[SLIDE]http://rapidrdp.com/image/screenshot-bSi0OX.png[/SLIDE]




see there is no such word saying continue
[SLIDE]http://rapidrdp.com/image/screenshot-0KP94x.png[/SLIDE]
 
Huh , most likely a function that is calling that string ... open your themes functions.php and do a search for the word that you want to remove , if its no their then do the same for header.php ..
 
www.cityvillehelp.com

article URL
http://www.cityvillehelp.com/cityville/59148-storage-facility-material-links.html



Huh , most likely a function that is calling that string ... open your themes functions.php and do a search for the word that you want to remove , if its no their then do the same for header.php ..



the functions.php | see the top right corner of the image, there is no such word as continue
[SLIDE]http://rapidrdp.com/image/screenshot-b1xXrb.png[/SLIDE]

---------- Post added at 04:22 PM ---------- Previous post was at 04:18 PM ----------

///



I am only getting the text, on those articles in which i had used the MORE Tag during creating the post
 
PHP is not HTML , so its not necessary if it shows up on the top of your webpage will be at the top of you php file too , you can dynamically insert things where ever you want to ..

Just do a search for what i said (search = ctrl + f in your browser) and then type/paste what you are searching for ..
 
there is only 1 line in the entire template inside loop.php

and also has the text Read the rest of this entry in the language files

it has the following code, is it ok ????

PHP:
<?php the_content( '<span class="block-button">' . __( 'Read the rest of this entry &raquo;', 'graphene' ) . '</span>' ); ?>

@mintcold
wel said, let me check
 
you can try like this
Search all file in your theme (each file .php in right corner) with key Continue reading »" />
if you don't see, maybe problem from your post, some posts i can see Continue reading »" /> but some posts don't
:)
 
i could fix this

found it out!!!
just tell me what is the function to echo the post description ??? (content text of the post)


PHP:
	<meta property="og:description" content="<?php
	while(have_posts()):the_post();
	$out_excerpt = str_replace(array("\r\n", "\r", "\n"), "", get_the_excerpt());
	echo apply_filters('the_excerpt_rss', $out_excerpt);
	endwhile; 	?>" />

that problem is having just because of this code in index.php ..

tell me how to fix it out ???


---------- Post added at 04:55 PM ---------- Previous post was at 04:36 PM ----------

Fixed by Myself

just replacing the above code with the following solved my problem

PHP:
 <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" />


:)

everything is now fine

Thanks to all of you , for giving me idea , which helped me in figuring out the problem
special thanks to mintcold ...
rep added bro :)
 
Status
Not open for further replies.
Back
Top