I am trying to pass the title of a page to the get_flickrrss plugin.
Here is my code:
<?php $postname = $wp_query->post->post_title;?>
<p align=’center’><?php get_flickrrss(7, “public”, $postname); ?></p>
If I do an echo right after the first line to test, the post title is properly assigned to $postname, but when I include it in the get_flickrrss function it passes a blank value. I’m not too proficient with PHP so I’m not sure if the value has to be assigned another way to be able to pass it to the fucntion?
Would really appreciate any help.
- The topic ‘Passing WP Variable to a plugin’ is closed to new replies.