WordPress.org

Ready to get started?Download WordPress

Forums

Artiss Content Reveal
Custom Image (3 posts)

  1. James
    Member
    Posted 2 years ago #

    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/

  2. dartiss
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. James
    Member
    Posted 2 years ago #

    thanks, already got it, great plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic