WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
Can you use a shortcode for one single file? (7 posts)

  1. Persephone33
    Member
    Posted 2 years ago #

    I would like to use this to put a shortcode within a document, for one single file (not a list) - is this possible?

    http://wordpress.org/extend/plugins/wp-filebase/

  2. belg4mit
    Member
    Posted 2 years ago #

    I would also like the ability to use a shortcode to link to specific files in locations other than the post a file is attached to.

  3. belg4mit
    Member
    Posted 2 years ago #

    Apparently this already exists, but is un(der)documented.
    The author's website has some thin documentation that indicates there is a wizard in the Visual editor, but it is incomplete. Therefore I dug into the code and found that one could do:

    [wpfilebase tag=file id=136]

    To provide a link block for file 136. You can also include tpl as an attribute to the shortcode to specify a template other than the default for display.

    Cheers!

  4. Fabian
    Member
    Plugin Author

    Posted 2 years ago #

    WP-Filebase adds a button to the visual editor, see the screenshot:
    http://s.wordpress.org/extend/plugins/wp-filebase/screenshot-4.png

    You can create all supported shortcodes with this wizard, including single file tags.

  5. jooki
    Member
    Posted 2 years ago #

    exactly this button is not working at my blog's visual editor.
    can someone tell the shortcodes for manual insert?

    if found this working
    [wpfilebase tag=file id=2 tpl=simple]

    but the plugin is not really hiding the URL isn't it?
    In Firefox i can't make it hide the download link by any option...

  6. belg4mit
    Member
    Posted 2 years ago #

    Correct, the visual editor is broken, and probably should not be the only way to access the feature.

    I'm not sure about hiding it, but I assume restricting access to the download by user level works. It seems to work for the daily file limits at least. Have you tried viewing the post in a second browser without session cookies/a new MultiFox identity profile?

  7. 14nc310t
    Member
    Posted 2 years ago #

    Update to latest version. Now everythng should work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic