Support » Plugin: Read More Excerpt Link » Troubleshooting — couldn’t get this to work

  • Resolved dubberish

    (@dubberish)


    Hm, this plugin didn’t work for me. After configuring the options, I checked my category pages but nothing had changed (not the excerpt length nor adding a Read More link), except the color of a link in my footer, somehow. I’m using a custom theme (“Florence” by SoloPine) — could that have something to do with it?

    Also, a general question: is the plugin able to treat manual and auto-generated excerpts differently? Essentially, I would like my manual excerpts to appear in full, without any ellipsis. I would like the excerpt length setting to truncate auto-generated excerpts though (with ellipsis and a Read More link).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tim Eckel

    (@teckel)

    Some ill-formed themes that don’t respect proper WordPress practices can be incompatible with this plugin. With no setup it should work. If it doesn’t work, it means your theme is doing something non-standard.

    Also, the plugin already deals with manual excerpts the way you wish. There’s an option “Show More Frequently” that controls this. The default state is exactly how you want it. But, when using a template that does it’s own custom non-standard excerpt code without respecting how WordPress works, I’m not sure what difference this will make.

    To see Read More Excerpt Link working, simply activate a standard template (like the ones included with WordPress or just about any other template).

    Hi Tim,

    Thanks so much for your response!

    I think my theme is modifying the excerpt via “content-grid.php” using the below line. This template seems to be associated specifically with my theme, Solopine’s “Florence” (which overall seems pretty well thought-out, at least to my non-developer eye!) It seems “content-grid.php” is setting the grid layout I’m using for my Archive pages. Could this be what’s preventing the plugin from working right out of the box? Would it be possible to make some sort of modification such that content-grid.php respects your plugin? (Probably a dumb question – I have no clue what I’m doing…)

    <div class="post-entry">
    		
    		<p><?php echo sp_string_limit_words(get_the_excerpt(), 36); ?>...</p>
    		
    	</div>
    

    Thank you for your help!

    Plugin Author Tim Eckel

    (@teckel)

    Just the following would probably work just fine:

    <?php echo get_the_excerpt(); ?>

    The problem is that your theme is getting the excerpt and then doing something else with the result (limiting it to 36 words). Basically, the theme author did the except the easy sloppy way instead of the proper way (with a hook). Also, with my Read More Excerpt Link plugin, you can control how many words you want to display in the settings instead of being hard-coded with this theme.

    Best of luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Troubleshooting — couldn’t get this to work’ is closed to new replies.