Timeline for Hook for changing excerpt content when excerpt not set
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2020 at 7:16 | vote | accept | errorous | ||
Jun 15, 2020 at 14:12 | history | edited | Sally CJ | CC BY-SA 4.0 |
added 32 characters in body
|
Jun 15, 2020 at 13:35 | history | edited | Sally CJ | CC BY-SA 4.0 |
Better answer
|
Jun 15, 2020 at 0:30 | comment | added | errorous | This was DiVi theme. It obviously overrode the original process for creating an excerpt. | |
Jun 15, 2020 at 0:12 | comment | added | Sally CJ |
Hi Milos. Are you sure you put the code in the right file/place, e.g. the root of the theme functions.php ? Have you done something with the $excerpt , e.g. $excerpt .= ' testt'; ? Have you tried disabling plugins? Are you sure the post does not actually have a custom excerpt?
|
|
Jun 14, 2020 at 13:33 | comment | added | errorous |
this doesn't work. Ie., it's not executed at all. Funny thing, wp_trim_excerpt nor get_the_excerpt are being called at all, from what I can see. Only the_excerpt gets called.
|
|
Jun 14, 2020 at 10:09 | history | answered | Sally CJ | CC BY-SA 4.0 |