hi,
could you please show how to add custom image using php on this example (?):
<?php if ( function_exists( 'content_reveal' ) ) { content_reveal( '<h2>%image% Some Blah Content Below</h2>', 'id1' ); } else { echo '<h2>Some Blah Content Below</h2>'; } ?>
Blah, blah, blah content here
<?php if ( function_exists( 'content_reveal' ) ) { content_reveal(); } ?>
cannot find this information, except for short codes.
thank you!
http://wordpress.org/extend/plugins/simple-content-reveal/
Here's an example of usage...
if ( function_exists( 'content_reveal' ) ) {
content_reveal( "<h2>%image% Title</h2>", "example", "show", $image );
} else {
echo "<h2>Title</h2>\n";
} ?>
:: Place content here ::
<?php if ( function_exists( 'content_reveal' ) ) { content_reveal(); } ?>
Simple set $image to the URL of the folder that contains the images.
thanks, already got it, great plugin!