Is there an Action/a Filter that runs just after each post/post excerpt is displayed on these 2 pages? I use
get_the_excerpt currently, but
the_content causes a conflict with some other plugin (hence executing my function twice so the content is displayed twice) and setting the priority isn't working!
Note: I've tried
the_post, but it runs before each post in the loop on these 2 pages.
My plugin adds a custom markup with icons after the post content using:
the_content- for single post/page and as some themes use
the_content('Read More') on index/archive pages
get_the_excerpt - for index/archive pages
The plugin Advanced Excerpt adds some options for post excerpts, and allows the user to set the excerpt length from the settings. When the post length is less than the set excerpt length (via AEs settings), my markup is doubled! When I comment out
the_content from my code, the conflict goes off, but without
the_content how would I make my plugin work on single page/posts and also with some themes which use
the_content('Read More') on index/archive pages?
I guess it happens because AE calls
the_content instead of
the_excerpt when the post length is less than the set excerpt length, hence resulting in a double call. I tried setting the priority of my filter function high, so that it runs after AE's filter function, but no luck!
Hence trying a workaround! I hope this clears the question!