I have a small php file that sends a recommendation to a friend about the page/post they are reading.
I usually call it via an iframe and prettyphoto. It grabs the post url and sends it to a friend
How can I do the same kind of call with a button?
<a style="font-weight: bold" title="" alt="" rel="prettyPhoto" href="/recommend.php?iframe=true&width=550&height=400">TELL A FRIEND</a>
That way I click the button and it opens an iframe with prettyphoto with the recommend.php in it
I can t seem to be able to do this using the buttons…any recommendation on how to tell the button to use an iframe and prettyphoto ?
EDIT: Also how can I add something like <?php $permalink = get_permalink( $id ); ?>
inside a button link without it being rewritten I mean is there a way to add some php inside a button code?
Hi Monsoon!
I would suggest creating your own custom shortcode for that. Or else try generating the button outside of the ALB and then try adding in the link values.
The php snippet wouldn’t work however so the shortcode route would be what I would do.
Regards,
Devin