Community Forums › Forums › Archived Forums › General Discussion › read more tag is not working
Tagged: content, Excerpt, more tag, read more, sixty nine
- This topic has 7 replies, 4 voices, and was last updated 10 years, 1 month ago by jdaviescoates.
-
AuthorPosts
-
September 4, 2014 at 5:55 pm #122834Cristiane11Member
I got Genesis Framework theme, but on the post the read more tag is not working. I deactivated my plugins, but did not resolve anything. Does anyone can help me ? Thanks for any help
http://vaptvuptjanitorial.com/works/September 4, 2014 at 7:24 pm #122844WebmasterMemberHey Cristiane,
Try going into the Genesis side menu, under "Theme Settings", go down to "Content Archives" and set it to "Display post content" and set the "Limit content to ___ characters" setting to however many characters you want to show. They should then show the read more link. Same basic thing in the settings for Genesis Featured Page widget and the Genesis Featured Post widget. (There, it's in the Content Type dropbox.)
“If it works, mark the post as [Resolved] so others will feel comfortable trying the solution on their website.“
November 4, 2014 at 10:03 pm #130514jdaviescoatesMemberI have the same problem as the original poster. I do not want to arbitrarily choose a character limit because sometimes this ends up with sub-optimal results.
Instead, I'd like to be able to use WordPress' built-in More Tag functionality to choose exactly where I want the read more link to be. However, whenever I use the More Tag no Read More link is displayed at all.
It is possible to use the More Tag and have it actually display a link in Genesis? (specifically, with the Sixty Nine child theme). I've searched all over Google and these forums and haven't found anything 🙁
November 4, 2014 at 10:28 pm #130523Genesis DeveloperMemberTry this
add_filter('get_the_content_more_link', 'custom_read_more_link'); function custom_read_more_link(){ return '... <a class="button readmore" rel="nofollow" href="' . get_permalink() . '">Continue Reading...</a>'; }
November 4, 2014 at 10:40 pm #130526jdaviescoatesMemberThanks for trying to help Genwrock, but that doesn't make any difference.
All your code does is change the default …[Read More...] link into a button and change the words to Continue Reading.
My points 1 & 2 here still hold true; that is either I can have a …[Read More...] link displayed after a given number of characters (by choosing Display Post Content and setting the character limit), or I can choose where I want the break to be post by post (by choose Display Post Excerpt) but then no …[Read More...] link link is displayed at all.
I want to be able to choose where to break posts and have a …[Read More...] link displayed.
November 4, 2014 at 10:44 pm #130528Genesis DeveloperMemberif you try this then what is happening
add_filter('get_the_content_more_link', 'custom_read_more_link'); add_filter('excerpt_more', 'custom_read_more_link'); function custom_read_more_link(){ return '... <a rel="nofollow" href="' . get_permalink() . '">Continue Reading...</a>'; }
November 4, 2014 at 10:52 pm #130531jdaviescoatesMemberIt is the same.
With Display post excerpts selected in Genesis -> Theme Setting -> Content Archives the post breaks where I choose (i.e. where I put the More Tag) but no read more link is displayed.
With Display post content selected the read more link is shown (changed by your code to read Continue Reading instead of the default Read more), but it is displayed at the content limit, not where I put the More Tag in the post.
November 4, 2014 at 11:31 pm #130539jdaviescoatesMemberHeh, turns out all I had to do was:
Display post content
Content limit: 0Then it works like I wanted it to!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.