Timeline for is therer any wordpress function to retrieve a specific html element from post content
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 17, 2019 at 19:01 | vote | accept | Shahid Islam | ||
Feb 16, 2019 at 10:49 | answer | added | tmdesigned | timeline score: 0 | |
Feb 16, 2019 at 2:49 | comment | added | Jacob Peattie |
A custom field would be a much more sensible option than trying to extract the value from HTML, if you ask me. But I don't really understand what you're trying to do. When you say "title", what are you referring to? The <title> element? The name of the post in the back-end? The meta title? If you're not using the_title() then what are you using the title for that requires it to be shorter?
|
|
Feb 15, 2019 at 20:25 | comment | added | WebElaine |
Where do you want to use the shorter title, and where do you want to use the longer title? You could use WP's native title in some places and a shorter one elsewhere. Many sites use SEO plugins such as Yoast to make the <title> tag different than the WP title .
|
|
Feb 15, 2019 at 20:00 | review | First posts | |||
Feb 16, 2019 at 11:33 | |||||
Feb 15, 2019 at 19:55 | history | asked | Shahid Islam | CC BY-SA 4.0 |