• Resolved Irian

    (@irian)


    Hi,
    I have made my own template, which works fine. But when trying to use some shortcode, it does not process. When switching to template Twenty Ten, it works fine.

    The content of the pages is exploded and then processed with wpautop()

    $columns = explode('[split]', get_the_content());
    wpautop($columns[0]);

    Am I doing something wrong? Can you help me with this?

    Thanks,
    Irian

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

    (@irian)

    Problem solved, had to apply filters to the content.

    $content = get_the_content();
    $content = apply_filters('the_content', $content);

    Greets,

Viewing 1 replies (of 1 total)
  • The topic ‘shortcode does not work with own template’ is closed to new replies.