[SOLVED] 'Read More' not displaying on custom category-posts-in-a-page
The WP "Read More" (<!--more-->) works on the home page and in a regular WP category page, but it doesn't work (ie. the full post is displayed) on the page template I have created that displays category posts.
I found this thread: http://forum.bytesforall.com/showthread.php?t=2592 ...which seems like the problem I'm having, but when I add $query_string. to query_posts the template stops working and displays nothing from the loop. I'm new to PHP so maybe I'm applying it incorrectly. This is what I have added before the loop: PHP Code:
|
Hello,
I am having a similar problem. PHP Code:
Thanks for your help in advance! :) |
Incidentally, though it didn't work before, I bashed again at all the options and this worked:
global $more; // set $more to 0 in order to only get the first part of the post $more = 0; ...added after the query_posts(), as suggested in the thread I linked above. I don't know why it didn't work before. I must have goofed something up. Or maybe I tried it in combination with adding $query_string. to query_posts, which did not work. My apologies for what turned out to be a redundant thread. lknyc, your problem is different. The issue I was having was with the "Continue reading..." link that you can insert into long posts in Worpress. You are talking about older/newer links to other posts, rather than within a post. My php works for that so you might want to copy & paste it (adding the global $more; stuff above) and modify it to your own use. |
All times are GMT -6. The time now is 02:57 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.