Timeline for Proper way to use get_the_content() in front-page.php and the content-home.php?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 26, 2017 at 20:41 | vote | accept | WordCent | ||
Jul 26, 2017 at 12:25 | comment | added | Stender | you can also just use "get_the_excerpt()" this way, you can write a precise short text explaining it better than just a cut off version of the content | |
Jul 26, 2017 at 11:38 | history | edited | Johansson | CC BY-SA 3.0 |
edited tags; edited title
|
Jul 26, 2017 at 11:37 | answer | added | Johansson | timeline score: 4 | |
Jul 26, 2017 at 11:09 | comment | added | WordCent | My question is <p></p> tag is automaticall fetched when we run this → <?php echo wp_trim_words( get_the_content(), 70 ); ?> or It is advised that we should incorporate the dynamic code within <p></p> tag. | |
Jul 26, 2017 at 11:06 | comment | added | Johansson | Sorry but I don't see the question here? | |
Jul 26, 2017 at 9:36 | history | asked | WordCent | CC BY-SA 3.0 |