Trying to use a shortcode in text widget

This topic contains 1 reply, has 2 voices, and was last updated by  Stiofan O’Connor 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #404933

    timgtheo
    Full Member
    Post count: 211

    Hi there

    I’m trying to use a shortcode in a text widget but nothing happens.

    Here is the shortcode [sr-partner-os-audit id=1]

    Any advice?

    regards

    #404936

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    U need to add the below code snippet to enable it:

    
    
    // Enable shortcodes in text widgets
    add_filter('widget_text','do_shortcode');

    Stiofan

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket