realmadrid_rocks
Member
Posted 2 years ago #
Hi. I recently joined WordPress so don't know my way around everything yet. I blog on http://www.crazy4footie.info
So the problem am facing is that my theme (Free theme called Phyto) sets a READ MORE text after every post even if I don't have the <--more--> tag in use. This has forced me to display the posts in a excerpt format rather than my preferred method of one long complete post. I want the READ MORE text to only come up when I use <--more--> tag and not otherwise. I have read my way around some of the forums and searched here too but found nothing that would suit my problem. Follow is the code from index.php file :
<div class="entry">
<?php if($i==1 || $i==2) : ?>
<?php obwp_google_468_ads_show(); ?>
<? endif; ?>
<?php the_content('',False,''); ?>
</div>
<div class="postmetadata">
<p><a href="<?php the_permalink() ?>">Read more..</a></p>
</div>
</div>
Please help me. This READ MORE text is also displaying in any of the themes that I preview now. I don't know what's wrong. Thanks :)
If you want one long post with no read more, try this:
<?php if($i==1 || $i==2) : ?>
<?php obwp_google_468_ads_show(); ?>
<? endif; ?>
<?php the_content(); ?>
</div>
<div class="postmetadata">
</div>
</div>
See: http://codex.wordpress.org/Customizing_the_Read_More
realmadrid_rocks
Member
Posted 2 years ago #
Thanks for the reply but the problem still persists. The code now looks like this :
<div class="entry">
<?php if($i==1 || $i==2) : ?>
<?php obwp_google_468_ads_show(); ?>
<? endif; ?>
<?php the_content(); ?>
</div>
<div class="postmetadata">
</div>
</div> </div>
</div>
What I don't understand is that why every template is doing it this way?
Every template. Strange. Do you have any plugins that might be doing that? Sure there are no <--more--> anywhere? There is a setting for full text instead of excerpts in Settings/Reading, but that's just for Feeds.
realmadrid_rocks
Member
Posted 2 years ago #
I don't think any plugins would be messing it up. The active ones are :
1.All in all seo pack
2.broken link checker
3.comment luv
4.contact form 7
5. feedburner feedsmith
6. google xml sitemaps
7. lightbox plus
8. robots meta
9. rss footer
10. seo friendly images
11. sociable
12. subscribe to comments
13. tweetme retweet button
14. what would seth godin do
15. whydowork adsense
16. wp page navi
17. wp-pagignate
18. wp-post views
19. wp thumbie
20. wp security scan
21. wp super cache
and last is an affiliate plugin.
Don't think any of them have anything to do with the orientation of the pages.
wp-pagignate might be changing your excerpts/full text. Go back to your original code in your templates and deactivate that plugin and try it. That might be why every theme you try has the same problem.
realmadrid_rocks
Member
Posted 2 years ago #
Disabled WP-Pagignate and still no use. Tried previewing a theme and there is still READ MORE text on a non excerpted post.I don't know what to do now.
You've got an extra </div> tag or two that's messing up your display.
After that gets fixed, try disableing all plugins for a minute and see what happens with "Read More" and your original, undedited theme.
realmadrid_rocks
Member
Posted 2 years ago #
Remove all plugins? :o Are you sure that would work because getting them all back and working would be a tedious job. Also to configure them again.
I didn't say "Remove." I said disable. Deactivate. Your plugins won't be deleted. Only deactivated. All your settings will stay put. Then reactivate your plugins one or two at a time to figure pout which one is changing the content.
realmadrid_rocks
Member
Posted 2 years ago #
Oh ok. Sorry I read it incorrectly then. Will try now. Thanks :)
realmadrid_rocks
Member
Posted 2 years ago #
Thanks its working now. Don't know what might have triggered the problem but its working fine now. Thanks Songdogtech for all the help and sorry for being a major pain :)
realmadrid_rocks
Member
Posted 2 years ago #
Now I hope to find a better and free WordPress theme :)
Good that it's working now; maybe deactivating/activating the plugins did it. You werne't a pain ;) Sometimes it takes someone else's deduction....