Support » Fixing WordPress » Calling the Page title to use in a snippet of PHP

  • Hello,

    I wonder if you could help me out with a quick question about PHP.

    Below is a snippet of code I use to call a particular plug-in, FAlbum:
    <?php global $falbum; ?><?php echo $falbum->show_random(4, 'restaurants',1,'s');?>

    Now, the ‘restaurants’ part of that code tells the plug-in to pull images off Flickr that have the tag ‘restaurants’. So far, so good.

    But my question is: how can I replace that bit (‘restaurants’) with whatever happens to be the title of the current WordPress Page?

    I know that to return a Page’s title you just use the code:
    <?php wp_title(); ?>

    But is it possible to squeeze that tag inside the other one?

    Help!

    Thanks

    Ian

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calling the Page title to use in a snippet of PHP’ is closed to new replies.