• Resolved bengt1234

    (@bengt1234)


    Hi, is it possible to call [adverts_list] from code in my theme, like:

    if(function_exists('adverts_list')) { adverts_list(); }

    I have tried but haven’t had any success yet.

    Kind regards

    Torkel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    yes, the [adverts_list] shortcode is called using shortcode_adverts_list() function so your code should be

    
    if(function_exists('shortcode_adverts_list')) { echo shortcode_adverts_list(); }
    
    Thread Starter bengt1234

    (@bengt1234)

    Great, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calling [adverts_list] from code in theme’ is closed to new replies.