• Resolved VictorTookes

    (@victortookes)


    I have the plugin working, images show in the posts. I added
    `<?php if (function_exists(‘usp_post_attachments’)) {
    usp_post_attachments(‘medium’, ‘<img src=”‘, ‘” alt=”” />’, 99);
    } ?>`
    to a custom template.
    The images show up as expected, but I thought adding ‘user_submit_image’ to the img src= would make them link to the full size version. Apparently that’s not right? Is there a way to make them link to the full size version?

    https://wordpress.org/plugins/user-submitted-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter VictorTookes

    (@victortookes)

    If you included a template with the package, and threw in a template_include

    add_filter( 'template_include', 'my_callback' );
    
    function my_callback( $original_template ) {
      if ( USP_Form_stuff() ) {
        return SOME_PATH . '/USP-Template.php';
      } else {
        return $original_template;
      }
    }

    It seems like it would cut down on a lot of the support questions you have. People could still customize, but it making it work out of the box would help the newbs like me.

    Also, still looking for a way to make the images click-to-open using the built-in WP image viewer.

    Plugin Author Jeff Starr

    (@specialk)

    The plugin does work out of the box, but I like the idea of adding an easy way to customize the form template. Thanks for the feedback.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘clickable images?’ is closed to new replies.