Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED Reading time
#2
(2023-02-22, 06:43:55)tuxy Wrote: I will show the reading time on a blog post.
The first step is strip all the unnecessary characters from the content in the xml-file.
Try it with this code:

Code:
strip_tags(html_entity_decode(get_page_content()));


But it doesn't work.
Someone knows how the content text convert to raw text, so i can put it in a variable.

In getSimple the get-Functions mostly (and misleadingly) echo something, while the return-Functions return a value that you can store in a variable. E.g. see http://get-simple.info/wiki/themes:template_tags: you should be able to use returnPageContent(return_page_slug()).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Reading time - by tuxy - 2023-02-22, 06:43:55
RE: Reading time - by mvlcek - 2023-02-23, 02:35:59
RE: Reading time - by tuxy - 2023-02-23, 20:32:47



Users browsing this thread: 1 Guest(s)