• Resolved yukabuki

    (@yukabuki)


    Hello, I’m french so sorry for my level of English.
    I can not use the shortcode in the backend.
    echo do_shortcode ('[fileaway type = "table" base = "2"]') not working.
    How can I make it work?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author thomstark

    (@thomstark)

    Are there files in the directory you’re pointing to? If not, you need to add directories="true" to your shortcode.

    Plugin Author thomstark

    (@thomstark)

    Also, there should be a semicolon at the end of that line of code.

    echo do_shortcode('[fileaway type="table" directories="true" base="2"]');

    Thread Starter yukabuki

    (@yukabuki)

    Thank you, but there are files and I have the semicolon at the end. WordPress shows me [fileaway type = “table” base = “2”] as the result, as if the shortcode was not recognized.

    Plugin Author thomstark

    (@thomstark)

    Do you mean you’re trying to load File Away on a wp-admin page? WordPress shortcodes are for front end only.

    Thread Starter yukabuki

    (@yukabuki)

    Yes that’s exactly it…
    So if I want to make a page in wp-admin to view all the files that my users send me, I can not?

    Plugin Author thomstark

    (@thomstark)

    Correct. Front-end only. You can make the page private and add showto="administrator" to your shortcode and only administrators will see the files.

    Thread Starter yukabuki

    (@yukabuki)

    OK I’ll do that
    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcode not work in the backend’ is closed to new replies.