• Resolved gtvracer

    (@gtvracer)


    Hello,
    Just starting to use UM and went through the steps of creating the forms for the login, registration and profile pages, with their respective [ultimatemember form_id=”40″] style shortcodes.

    I put one of them into a custom html widget on the sidebar just to see, but all I see is the shortcode string, i.e. [ultimatemember form_id=”40″], and not the form itself.

    Any ideas on how to make this shortcode appear on the widget (just for testing now).
    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter gtvracer

    (@gtvracer)

    Found the problem. In UM’s class-shortcodes.php::load() method, I needed to add this:

    // adding this bit of code because $template will be null otherwise..
    $template = $post_data[‘template’];

    $this->template_load( $template, $args );

    Otherwise, $template is uninitialized when calling template_load() and nothing shows up, as the file name to the php file cannot be constructed.

    This is in UM version 2.0.43

Viewing 1 replies (of 1 total)
  • The topic ‘form_id shortcode not doing anything’ is closed to new replies.