Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » [Plugin: NextGEN Gallery] echo ngg tag title

  • Resolved zbrass


    When i place a ngg tagcloud in my post and i click a tag i get the pictures that are tagged with this word.
    No problem, works great.
    But i would like to title the result page with the tag i clicked.
    like with the archive.php and the wp tagcloud. single_tag_title

    Does anyone knows how to echo the tag title from the ngg tagcloud?



Viewing 3 replies - 1 through 3 (of 3 total)
  • zbrass



    I found it

    <?php $gallerytag = (get_query_var(‘gallerytag’)); ?>
    <?php echo $gallerytag; ?>



    thanks for the hint.
    I had the same issue and my final solution looks like this:

    $gallerytag = (get_query_var('gallerytag')); 		// get the slug
    			$gallerytag = str_replace("-", " ", $gallerytag); 	// replace dashes with spaces
    			$gallerytag = ucwords($gallerytag);					// capitalize words
    			echo '<h1>'.$gallerytag.'</h1>'; 					// show the result

    And I am happy with it! 🙂

    Thanks guys for this. Works great!

    I’d like the tag_name and not the slug to be used. How do I do that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Gallery] echo ngg tag title’ is closed to new replies.