Sign in

Custom Excerpt for Tag description on Tags page

  • This topic has 1 reply, 2 voices, and was last updated 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5864
    shaun2k

    Hi,

    When “readmore” is inserted into Posts, the text before the “readmore” is treated as custom excerpts when displaying the list of posts on tag pages or the front page.

    Is it possible to get a similar output for Tag descriptions when Tag items are displayed on Tags page?

    I would like to display a smaller controlled number of words for tag descriptions on the Tags page instead of the full, and more lengthy, description on the respective Tag page which lists its corresponding posts.

    I hope this made sense.

    Thanks.

    Shaun

    #5895
    Tomasz Dziuda

    Hi,

    The only solution is to create a custom helper which will modify your tag description to the required length – you can see a similar solution here: https://getpublii.com/dev/excerpts-with-variable-length/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.