Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bdam55

    (@bdam55)

    Thanks for the suggestion Anders. I tried a few variations this evening but any use of get_the_excerpt() or the_excerpt() seems to send the site into a death-spiral. Even when including the in_the_loop() and is_main_query() conditionals.

    I suspect some kind of recursion is going on creating an infinite loop. After 10 seconds or so it loads the first post title/excerpt but then times out.

    I had some luck just modifying the $content string but that quickly turned into ‘reinvent the WP wheel that creates an excerpt’. I might give it another shot at some point and if I do I’ll post it here.

    Thanks again,
    Bryan

    • This reply was modified 4 years, 9 months ago by bdam55.
    Thread Starter bdam55

    (@bdam55)

    Thanks Anders. Yup, all I had to do was re-do what I did previously: copy the new content.php file and overwrite that section. Not hard to do but I was just wondering if there’s a better way to do this that doesn’t essentially overload the entire content.php file. The answer may just be ‘no’ which is perfectly fine, I just wanted to make sure I’m doing it the ‘right’ way.

Viewing 2 replies - 1 through 2 (of 2 total)