Timeline for Displaying Post Content on tooltip
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 2, 2018 at 12:32 | vote | accept | sonja | ||
Aug 2, 2018 at 11:09 | comment | added | anmari | Sonya, note that get_the_content 2nd parameter is not the post->id for a start. See codex.wordpress.org/Function_Reference/get_the_content. Depending whether you want filters applied (shortcodes etc) you could simply do the_content(). You'll also need to strip any html out of the content so you only have plain text, otherwise you'll end up with invalid nested html. This maybe what is causing the problem. Consider just using the excerpt instead. | |
Aug 2, 2018 at 11:00 | answer | added | Jacob Peattie | timeline score: 0 | |
Aug 2, 2018 at 10:54 | history | asked | sonja | CC BY-SA 4.0 |