dholloran
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Better Attachments] Simple tutorialI do agree that the docs could be better that’s why it’s on GitHub so if someone wants better docs before I get tine then they can
Forum: Plugins
In reply to: [WP Better Attachments] Simple tutorialHave you taken a look at the documentation here https://dholloran.github.io/wp-better-attachments. I’ve been wanting to do some screencasts just never can find the time. Technically it should output the post thumbnail because if you upload media to a post it is an attachment. I use the default WordPress attachment functionality. This can be disabled in the settings or directly in the shortcodes and functions. Wpba_get_attachments returns an array so to retrieve the first attachment you would assign it to a var an do $yourvar[0] and I would suggest using wp_get_attachment_img_src or something like that function in the codex.
Forum: Plugins
In reply to: [WP Better Attachments] Zip files not posting in attachment listThis should be fixed in the 1.3.7 update I put out today
Forum: Plugins
In reply to: [WP Multi File Uploader] Invalid JSON responsePlease try updating to 1.1.3 I may have resolved this from a Github issue
Forum: Plugins
In reply to: [WP Multi File Uploader] Upload Failed IncorrectPlease try updating to 1.1.3 I may have resolved this from a Github issue
Forum: Plugins
In reply to: [WP Multi File Uploader] Upload Failed IncorrectNot enough information. Please include more information about what you did, what kind of file was uploaded, what errors you received in the Javascript console.
Forum: Plugins
In reply to: [WP Multi File Uploader] Invalid JSON responseThis is not helpful at all please submit more information. What you have done, what the error is, what possible conflicts you have in your install, what you expected to happen, etc… Please read through this article before reposting https://www.wpbeginner.com/beginners-guide/how-to-properly-ask-for-wordpress-support-and-get-it/
Forum: Plugins
In reply to: [WP Better Attachments] BorderNot sure what section you are referring to, but you can use CSS-selector { border:none!important} in you themes CSS file or where ever you put custom css. If you are not comfortable finding the CSS selector link a screen shot of the piece with the border and ill send you the CSS for it.
Forum: Plugins
In reply to: [WP Better Attachments] list stylingYou where on the right track but do list_style=”wpba-attachment-list” or you can use any other class you like in its place it is just a string no logic so whatever you put in there will be output. I had not updated the docs on github but they are updated now.
Forum: Plugins
In reply to: [WP Multi File Uploader] how change Upload FilesFor the file size you can add this to your shortcode
max_file_size="15"
or if using the function you can add thisarray( 'max_file_size' => 15 );
. To change the Upload file text there is not a way to do this at the moment through the plugin easily I would suggest to change the name with JavaScript that way updates will not affect it.Forum: Plugins
In reply to: [WP Better Attachments] Gallery display?Take a look at
wpba_get_attachments()
on here https://dholloran.github.io/wp-better-attachments/. Itt is an alias on the main class method that I use to retrieve the attachments every where in the plugin so it will respect any settings/changes to the plugin going forward it returns an array of post objects the exact same as if you where using get_posts so if you still have that code just swap the get_posts with wpba_get_attachments() and pass in an array with the available parameters if needed which it defaults to currentglobal $post->ID
and it respects if you want to included the thumbnail. I think you are on the right track I have had a light box like shortcode on t,he lost for awhile just have not completed it.Forum: Plugins
In reply to: [WP Multi File Uploader] Upload multiple files at onceThe plugin already supports cmd+click for a multi select so they can select all the files in the directory and upload them at one time. You could place some instructions on your page letting your user know the functionality exists. You can also use cmd+click with shift to select them all
Not really, you would have to edit the plugin because you need to know when the upload is succeeded then print out a message in the form or if the form has more fields you could make you submit page have your message on it which would be beyond the scope of the plugin. I would help by doing some of the editing for you but it already has an upload succeeded by turning the upload bar green.
Forum: Plugins
In reply to: [WP Better Attachments] Multisite Wont WorkThe best way to do that would be with a custom page template and you can use
wpba_attachment_list()
in the template and it will make the same list as the shortcodeForum: Plugins
In reply to: [WP Better Attachments] Multisite Wont WorkIt does not add them to the post if you want a list of all the attachments you can use this shortcode
[wpba-attachment-list]
. If you want them added to the post in a different way you have to click the add media button and select/upload the file you want in the post then click insert into post. The primary use of the plugin is not to insert the attachments into posts since WordPress already has this functionality. However it does not have a good structure of dealing with files attached to posts which is what I am trying to solve. I like to use it mainly for building custom sliders without having to create custom post types or any other way but there are many other uses as well. Sorry for the confusion, if you have any more issues please let me know if not please mark as resolved, thanks.