• Resolved cameraspots1

    (@cameraspots1)


    Hello, is it possible to paste the template tag in a js script? to get the json directly from the template tag?

    normal with getJSON or VAR , can you tell me for example how to put the tag in the script (example)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cameraspots1

    (@cameraspots1)

    I mean i need a json file from an api. But i can only make wordpress page files and php files. Can i make a json file too?

    Plugin Author WPGetAPI

    (@wpgetapi)

    Hi there,

    No it is not possible for it to go into JS code. It is a PHP function and only works with PHP.

    I’m not 100% sure I follow what you are wanting to do though.

    Thread Starter cameraspots1

    (@cameraspots1)

    No problem, it already worked. I have been using a php file instead of snippets plugin.

    Plugin Author WPGetAPI

    (@wpgetapi)

    Ok great.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘template tag in js script’ is closed to new replies.