dholloran
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Better Attachments] How to not attach images from custom fields?Hi Qarlo,
Not sure if there really would be a way. Anything that is uploaded to a post is technically an attachment.
There may be some way to hook into the ACF upload and remove the attachment reference since this is something WordPress handles and WPBA just retrieves the attachments and adds somethings on top
If you have ACF Pro you can use the repeater and replace WPBA totally not sure if that’s an option.
Sorry that I couldn’t be more help.
Greetings,
There should a way to disable any post types you do not want to use if on under Settings > WP Better Attachments. Please let me know if you need anything else.
Thanks,
DanForum: Plugins
In reply to: Warning: File possibly compromisedHi,
Something has gotten access to your install all of those items should not be there. You will still need to do some looking around to see what added the files it may be in WPBA it may not be this is the first I have heard of this happening.
If possible could you download the plugin and zip it up before removing the files so I can inspect it? You can send it to [email protected] in case it is an issue with the plugin.
Forum: Plugins
In reply to: [WP Better Attachments] wpba_attachment_list and mid filesHi,
Just to clarify. Is it that the file can not be uploaded or is it that it can not be displayed?
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] Problems displaying attachment listGreetings,
You may want to use the
wpba_attachment_list
function instead. You can find more information on the github repo.You could also try
get_children( array( 'post_type' => 'attachment' ) );
and see if it retrieves anything.Please let me know if you have any questions.
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] Admin CSS & Missing ImagesHi,
I believe there is a setting that’s something about shortcodes on the front end will disable the CSS file. If that does not work you can use wp_deregister_style with the handle wpba_front_end_styles.
For the missing images the example site is not WordPress and does not use the plugin. Also it shouldn’t be the cause of images not loading especially if the images are 404ing.
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] Add all sizes for attached imagesHi Bas,
Probably the only way to do that is to get all of the possible attachment sizes and then get the links to each attachment. You could use the array from wpba_get_attachments it just returns an array of post objects since it uses WP_Query under the hood. Let me know if that doesn’t make sense or if you need some help implementing it. I’d be interested to hear if you found a different way to solve it as well.
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] How not attach featured imageGreetings,
You can disable displaying the featured image as an attachment by going to Settings > WP Better Attachments. Please let me know if you have any other questions.
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] Attach to multiple postsGreetings,
Unfortunately it is not something you can currently do but I would like to add the functionality in the future. Currently it treats attachments like core does as a child to the post. So in that situation you can only have on post parent.
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] how to get url attachment is postedGreetings,
You can either use
WP_Query
to retrieve the attachments just like you can query posts you can read more about it here. I also have a convenience methodwpba_get_attachments()
you can read more about it here.You can get the link to an attachment fairly easily. You can use
wp_get_attachment_url()
if you are looking to get the path to the file you can read more here. You can also useget_attachment_link()
if you want a link to the attachment page you can read more about it here.Hope this helps please let me know if you need anything else.
Thanks,
DanForum: Plugins
In reply to: [WP Multi File Uploader] adding the plugin via a formGreetings,
Unfortunately I do not believe this will be accomplished without some custom code. You may be able to add the shortcode to something like Contact Form 7 or another form editor but I am not sure.
If I understand correctly you should just be able to add the file uploader to a form. When a new file is uploaded it will add a hidden field for each file with
name="wp_multi_file_uploader_[NUMBER]"
. Where [NUMBER] is equal to the file upload count starting at one and the value will be the attachment id. When the form is submitted you can use these details to do what you need with them. The link to the documentation was broken on wp.org I have now fixed it there is a little more information here.Thanks,
DanThank you for bringing this to my attention I have applied the patch and it will be in the next update.
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] WP Attachments compatible with EG-Attachments.Greetings,
It should just work unless EG-attachments “definition” of an attachment is different than WordPress. There is very little difference between the Add Attachments button and the Media Upload button.They both upload the file to the uploads directory and set the file as an attachment to the current post.
Thanks,
DanForum: Plugins
In reply to: [WP Better Attachments] Add link in description FieldUnfortunately I don’t believe there would be an easy way to add a link in text. It’d be a good idea if I can find some time to add it.
Forum: Plugins
In reply to: [WP Better Attachments] Order messed up after replicating in WMPLI use WPBA to reference WP Better Attachments plugin. So when using the Zyra gallery are you using WPBA to order the attachments that gallery displays or to add images to the gallery? I am just trying to get a better sense on where WPBA falls into the equations.
I have a feeling it could be any number of things going on but it would be hard to narrow down the best bet would be to disable WPBA and try duplicating a post so we can make sure it is actually WPBA causing the order issue. I do all of the sorting for the attachments via AJAX so it should not happen unless you actually drag and drop it to reorder it. If the issue is resolved once you remove WPBA from the mix I will look more into it.
Thanks,
Dan