question about shortcodes

This topic contains 2 replies, has 2 voices, and was last updated by  Paolo 7 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #231837

    sylvester vader
    Buyer
    Post count: 151

    hi uhm first off all im a noob in wordpress
    in scripting other then wordpress pretty good if i say so myself

    i like the shortcodes and such but you always seem to make a page to put it in

    however i would like to add 1 or 2 shortcodes in for example my header.php

    how can i do this
    i try to add the function of the shortcode but this dont seem to work

    atm the function i want is
    geodir_location_switcher

    but i need it directly in the script
    i dont want it in a seperate page

    i hope someone can help me

    greets from sylvester

    #231845

    sylvester vader
    Buyer
    Post count: 151

    ok uhm i found it on google
    was looking all day 😛
    and after i put this post i found it

    i donno if its the correct wag but it seems to work for now
    <?php echo do_shortcode(“[shortcode]”); ?>

    #231992

    Paolo
    Site Admin
    Post count: 31206

    Yes, that’s the correct wag… Good on you! 🙂

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

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

Open Support Ticket