Community Forums › Forums › Archived Forums › General Discussion › Problems with blog/archive/category pages
- This topic has 14 replies, 5 voices, and was last updated 10 years, 5 months ago by jodzeee.
-
AuthorPosts
-
October 27, 2013 at 2:25 pm #69294RainbowStephMember
Hi
I'm using the Metro Pro theme and I set the Content Archives to display experts.
When I go to the blog page or category page... it show the expert but not a read me or continue reading link.
there is a [...] at the end but it's not a link to the content. Only the headline is a live link.Is this the way the theme works or did I miss something in settings? The home page displays the read more link.
Thanks
http://afitnessbug.com/templates/blogOctober 27, 2013 at 2:59 pm #69297RobGMemberGo to your Genesis settings and scroll down to ( Content Archives ) choose the ( Display post content ) then save settings
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossOctober 27, 2013 at 3:03 pm #69300RainbowStephMemberHi Rob,
I don't want the display post content, that's why I changed it excerpt. Although I wouldn't mind more content to the excerpt.
Is there a way to add a read more link like on the home page?Thanks
October 27, 2013 at 3:12 pm #69304RobGMemberHave you tryed inserting it manually from your WordPress editor?
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossOctober 27, 2013 at 3:23 pm #69305RainbowStephMemberHi Rob,
Not sure what you mean by inserting it manually? Is there a piece of code I need to add in the functions etc.? It seems like this feature totally disappeared with Genesis 2.0... on my current the site the archive/blog read more link also disappeared and is replaced with [...]
Although I'm not panicky about it because I'm doing a makeover, the afitnessbug site is a test site for the makeover...
Thanks
October 27, 2013 at 3:54 pm #69306RobGMemberHere you go Rainbow, just add this to your function.php and you should be good to go. It will allow you to add the read more using excerpt.
// Add Read More Link to Excerpts add_filter('excerpt_more', 'get_read_more_link'); add_filter( 'the_content_more_link', 'get_read_more_link' ); function get_read_more_link() { return '... <a>Read More...</a>'; }
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossOctober 27, 2013 at 4:47 pm #69323RainbowStephMemberThis is different from the one I used... let me give it try
October 27, 2013 at 4:54 pm #69326RainbowStephMemberWell we're making progress....
I removed the code I was using
//* Modify the Genesis content limit read more link
add_filter( 'get_the_content_more_link', 'sp_read_more_link' );
function sp_read_more_link() {
return '... [Continue Reading]';
}I cut and pasted the code you provided in my functions.php uploaded and now the words Read More do show up and when you hover over the words change change color like a live link... but no link 🙁
http://afitnessbug.com/topics/category-1October 27, 2013 at 5:09 pm #69332emasaiParticipantYou need to tell it to get the permalink. Go to Resources - Code snippets - Post excerpts there are several snippets of code there. It's also a good place to look for other questions.
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.comOctober 27, 2013 at 5:47 pm #69342RainbowStephMemberLynne,
I tried there already and none of them worked... that's why I came here. I do review the tutorials, code snippets and even do a search for the forums before posting.
Thanks
October 27, 2013 at 6:13 pm #69347SummerMemberIn the example you posted, it looks like you took out the piece of code that actually calls the permalink, which is why your "Read more" doesn't link anywhere.
So, you've used this entire snippet and it didn't work?
//* Modify the Genesis content limit read more link add_filter( 'get_the_content_more_link', 'sp_read_more_link' ); function sp_read_more_link() { return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>'; }
I just went to your website, and those links work for me... did you fix it?
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkOctober 27, 2013 at 6:21 pm #69349RainbowStephMemberOkay... I think I got this solved... Since this feature quit working on my current live site... the excerpt and read more link disappeared with the recent 2.0 and wordpress upgrades, something changed that didn't support my older genesis theme.
Whats very surprise when the read more/continue reading wasn't in Metro Pro....
Thanks to Rob for his code and Lynne suggestion something about permalink, I check the functions on my older theme and low and behold... there was the permalink code.
So I took that line, modified it slightly and replaced Rob's last line of code with it wa la... it works
This is the code I used just in case anybody else experiences the same problem
// Add Read More Link to Excerpts add_filter('excerpt_more', 'get_read_more_link'); add_filter( 'the_content_more_link', 'get_read_more_link' ); function get_read_more_link() { return '... <a href="' . get_permalink() . '"> [Continue Reading]</a>'; }
Thanks Lynne and Rob
October 27, 2013 at 6:23 pm #69351RainbowStephMemberYes Summer,
I guess you were posting a solution the same time I came here to let Lynne and Rob know I solved it.
Thanks for helping
October 28, 2013 at 3:25 am #69417RobGMemberYour very welcome glad you got it working.
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossNovember 12, 2013 at 2:07 am #72445jodzeeeMemberI'm using this code for a page on my site that shows a variety of different categories (via a plugin).
http://www.tecadatasafe.com/about-teca-data-safe/news/But for the regular ol' category page, I'd like it to say something different (e.g., "listen" since they're podcasts).
http://www.tecadatasafe.com/podcast/Can the code be modified to be specific to a category?
-
AuthorPosts
- The topic ‘Problems with blog/archive/category pages’ is closed to new replies.