• If I have a specific name of a tag, how can I retrieve the amount of postings that STRING based verb has?

Viewing 1 replies (of 1 total)
  • Thread Starter cogmios

    (@cogmios)

    I now did:

    function tpc($tagname) {
    $returntagstring = 0;
    $allwptags = get_tags();
    foreach($allwptags as $tag) {
    if ($tag->name == $tagname) {
    $returntagstring = $tag->count;
    }
    }
    return $returntagstring;
    }

    so if anyone knows anything better, would be cool!

Viewing 1 replies (of 1 total)
  • The topic ‘Amount of posts with a TAG’ is closed to new replies.