ThemeForest

the_tags max tag number?

1965 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a File in an Envato Bundle
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Peru
  • Referred between 200 and 499 users
crozer says

Is it possible; if yes, how?

Just to clarify, what I am trying to attempt is to limit the maximum number of tags (the_tags) to 3.

Thanks :)

2 years ago
510 posts
  • Has been a member for 3-4 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Power Elite Author
  • Bought between 50 and 99 items
  • Austria
  • Referred more than 2000 users
Kriesi says

dont think its possible with the_tags() but it definitley works with get_the_tags(): Example here: http://pastie.org/1063900

Docs here: http://codex.wordpress.org/Function_Reference/get_the_tags

2 years ago
1965 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a File in an Envato Bundle
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Peru
  • Referred between 200 and 499 users
crozer says
dont think its possible with the_tags() but it definitley works with get_the_tags(): Example here: http://pastie.org/1063900

Docs here: http://codex.wordpress.org/Function_Reference/get_the_tags

Danke ;)

2 years ago
550 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 100 and 499 items
  • Canada
  • Referred between 1 and 9 users
OurWebMedia says
dont think its possible with the_tags() but it definitley works with get_the_tags(): Example here: http://pastie.org/1063900

Docs here: http://codex.wordpress.org/Function_Reference/get_the_tags

Awesome!! I have use for this, thank you for sharing the info!! As well, thanks OP for the question :)

2 years ago
1965 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a File in an Envato Bundle
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Peru
  • Referred between 200 and 499 users
crozer says
dont think its possible with the_tags() but it definitley works with get_the_tags(): Example here: http://pastie.org/1063900

Docs here: http://codex.wordpress.org/Function_Reference/get_the_tags

Hey Chris (or anybody else), would it be possible to check this code again? Somehow, someway, it is breaking my complete loop (i.e. when I click the post’s title or its comments on index.php, it brings me totally elsewhere).

I’d really appreciate it :)
NVM , it has nothing to do with this code.

2 years ago
by
by
by
by
by