“read more” showing on old layouts using “Excerpt” (inc fix)
-
Hi, just updated and version 2.0.54 is showing “read more” on all old layouts using the “Excerpt” field – note these are specifically the “Excerpt” and NOT “Excerpt with read more”.
The error seems to be in post-grid/includes/functions/post-grid-layout-elements.php
Function post_grid_layout_element_excerpt() includes the code to display the “read more” even though it is just an excerpt not “excerpt with read more”.
I tested and removing lines 443-448 (or making the “if” statement always false) returns “old layout” grids using “Excerpt” to the old/expected behaviour.
I’m not a php guy so I can’t tell you why the $read_more_text variable is being set to “Read More” in old grid layouts that use “Excerpt”).
“Excerpt with read more” still works as normal because it has a different function. (This change _would_ make the “read more text” settings irrelevant and unused in New Layout grids using “Post Excerpt” – but it fixes the old layouts, and both Exerpt elements behave as you’d expect – I’d use “Excerpt with Read More” if I wanted “read more”)
(Also, thanks for making and supporting this plugin, it’s really great. Any chance we could get a “copy grid” from the main grid listing?)
- The topic ‘“read more” showing on old layouts using “Excerpt” (inc fix)’ is closed to new replies.