• Resolved pedrovoorwinden

    (@pedrovoorwinden)


    Hi,

    There are 2 problems I am facing:

    The first one is that the shortcode [fileaway] is not working as it should be, at least that is what I’m thinking. If I insert the shortcode [fileaway] into a page by using 1 of the 3 methods below, the content is not visible, but should be visible on the page for every user that visits the page, right? I have tried the following:

    • Using WPBakery front-end and back-end editor to add the shortcode through a text block
    • Using Gutenberg Editor to add the shortcode through the shortcode element.
    • Using the WPBakery Shortcode Mapper to add it manually and then adding it as an element.

    The second problem is that the content is not visible for anyone when I’m not using the attribute [fileaway manager=on]. When I use this attribute, the content is visible for the administrator, but not for any subscriber role(The subscriber role isn’t able to see any content view when using the [fileaway] shortcode). Other attributes like showto="subscriber" or showto="administrator" are working fine when an administrator is logged in. But not when a subscriber is logged in.

    With the settings that I’m using now, I’m able to do the following:

    Logged in as administrator

    • [fileaway] is not working, but [fileaway manager="on"] is working just fine.
    • [fileup] is working fine too. I’m able to upload files without any errors.

    Logged in as subscriber

    • Any shortcode that starts with [fileaway ...] is not working, but [fileup] is working just fine, I’m able to upload files and the the administrator is able to see these.

    The goal I want to achieve are the following shortcodes to work:

    [fileaway manager=on showto="administrator, author"] // only visible for admin and author
    [fileup showto="administrator, author"] // only visible for admin and author
    [fileaway showto="subscriber"] // only visible for subscriber.

    I’m using Woffice as my theme.

    My question is, am I doing something wrong that the shortcodes are not working like they should be, or is it a problem with the plugin or settings?

    Let me know if anyone can help me with making the shortcode work, or using alternative solutions. Or if I have to send you any more details.

    Kind regards,

    Pedro Voorwinden

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

    (@thomstark)

    If there are no files in the parent directory, then either [fileaway directories=”on”] or [fileaway recursive=”true”] are what you need.

    It is designed to return no output if there are no files in the directory, unless you specify recursive or directory tree nav specifically.

    Thread Starter pedrovoorwinden

    (@pedrovoorwinden)

    Thank you! That worked for me. The problem was that I did not have any files in the parent directory, so no output was returned. I uploaded one file in the parent directory and the shortcodes worked!

    Kind regards,

    Pedro

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

The topic ‘FIleaway Shortcode not working properly’ is closed to new replies.