Problems with blog/archive/category pages

Community Forums Forums General Discussion Problems with blog/archive/category pages

This topic is: resolved

This topic contains 14 replies, has 5 voices, and was last updated by  jodzeee 11 months, 2 weeks ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #69294

    RainbowSteph
    Participant
    Post count: 27

    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/blog
    #69297

    RobG
    Participant
    Post count: 1055

    Go 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/robgoss

    #69300

    RainbowSteph
    Participant
    Post count: 27

    Hi 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

    #69304

    RobG
    Participant
    Post count: 1055

    Have 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/robgoss

    #69305

    RainbowSteph
    Participant
    Post count: 27

    Hi 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

    #69306

    RobG
    Participant
    Post count: 1055

    Here 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.

    [php]
    // 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 ‘… Read More…‘;
    }

    [/php]


    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/robgoss

    #69323

    RainbowSteph
    Participant
    Post count: 27

    This is different from the one I used… let me give it try

    #69326

    RainbowSteph
    Participant
    Post count: 27

    Well 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-1

    #69332

    emasai
    Participant
    Post count: 738

    You 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.com

    #69342

    RainbowSteph
    Participant
    Post count: 27

    Lynne,

    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

    #69347

    Summer
    Participant
    Post count: 1107

    In 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?


    #69349

    RainbowSteph
    Participant
    Post count: 27

    Okay… 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

    #69351

    RainbowSteph
    Participant
    Post count: 27

    Yes 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

    #69417

    RobG
    Participant
    Post count: 1055

    Your 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/robgoss

    #72445

    jodzeee
    Participant
    Post count: 230

    I’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?

    • This reply was modified 11 months, 2 weeks ago by  jodzeee.
    • This reply was modified 11 months, 2 weeks ago by  jodzeee.
Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.