Cant get this to work. Can u post a more detail solution?
Post like:
[rsnippet id="5" name="mysnippet" hotel="pearlsprings"]
and the snippet goes:
<?php
$hotel = $atts[“hotel”];
echo $hotel;
?>
This does not work.
Anyway. I need to pass this argument: [wpmem_field hotel_name]
Testing this on the snippet “Test args” seems to work.
But when i call the snippet from a post, it does not work:
[rsnippet id="5" name="mysnippet" hotel="[wpmem_field hotel_name]"]
The problem is parsing the [ ] as an argument.
Any suggestions to parse this kind of args?
-
This reply was modified 7 years, 9 months ago by andreasrenn.
-
This reply was modified 7 years, 9 months ago by andreasrenn.
-
This reply was modified 7 years, 9 months ago by andreasrenn.
-
This reply was modified 7 years, 9 months ago by andreasrenn.
-
This reply was modified 7 years, 9 months ago by andreasrenn.