WordPress.org

Ready to get started?Download WordPress

Forums

Auto Attachments
[resolved] Disable if no attachment on post/page (11 posts)

  1. spiney
    Member
    Posted 10 months ago #

    My site hv attachments in almost every post and I have Adsense placed at bottom of my post.

    I set title before attachment as <h2>Download</h2> to make things easier but there is some post in my site that does not have any attachment and the tag Download is shown as if pointing to Adsense

    This is against Adsense TOS. Is there any shortcode I can place manually in post so that auto attachment wont show ?

    http://wordpress.org/plugins/auto-attachments/

  2. Serkan Algur
    Member
    Plugin Author

    Posted 10 months ago #

    Hi steeltape,

    There is no shortcode but i will resolve this as soon as possible with an update. thanks for your information.

  3. spiney
    Member
    Posted 10 months ago #

    Would you mind adding another thing into the update ?
    right now if we hover on attachment link it is showing the file link on our left corner browser. is there any way to hide it from showing direct file link?

    example below

    http://i.imgur.com/X9tqv4e.png

  4. spiney
    Member
    Posted 9 months ago #

    Serkan I see the newest update patch mention that it will not show Title Before Attachments if no attachment in post.

    but mine is still showing Title Before Attachments

  5. Serkan Algur
    Member
    Plugin Author

    Posted 9 months ago #

    There was no problem when i tested. I will look code again. Thanks for your bug report.

  6. spiney
    Member
    Posted 9 months ago #

    okay confirmed still showing . I deleted the plugin from ftp and reupload, try it again and it is still showing.

    The reason why it's showing is because I have picture attached in that article and I set plugin to not show gallery.

    I only wanted plugin to show zip/rar/pdf files but it also thought pictures as attachment

  7. Serkan Algur
    Member
    Plugin Author

    Posted 9 months ago #

    steeltape i looked your example and you have attachments in your page. When you upload any content (images etc) to your post, these files are attachmetns. You can hide them from plugin's shortcode panel but still your post has attachments.

    Because of that before title option shown in your post. Plugin's logic is simple, if you have attachments, plugin shows everything based on your configuration.

    I can add an option to post's widget about before title. Let me figure it out.

    Have a nice day

  8. spiney
    Member
    Posted 9 months ago #

    serkan instead of that, could you make it so that we can choose to include picture as attachment or not ? we can choose to hide gallery but it still consider it as attachment right

    in my case I only wanted plugin to care for zip,pdf,rar files

  9. Serkan Algur
    Member
    Plugin Author

    Posted 9 months ago #

    Steeltape, i noted that. in this situation i need to add options to auto attachments general settings panel.

    You will choose which attachments to show (images, video, audio and files)

  10. Fobstar
    Member
    Posted 6 months ago #

    This is exactly what I need also. Looking for a switch to disable any images or videos attached from showing. Any progress on this? Love this plugin!

  11. spiney
    Member
    Posted 5 months ago #

    I test this plugin with 3.8.1 and this error pops out

    Warning: Illegal string offset 'where' in /home/house/public_html/xx/wordpress/wp-content/plugins/auto-attachments/auto-attachments.php on line 457

    Warning: Illegal string offset 'fshow' in /home/house/public_html/xx/wordpress/wp-content/plugins/auto-attachments/auto-attachments.php on line 249

    Warning: Illegal string offset 'fshow' in /home/house/public_html/xx/wordpress/wp-content/plugins/auto-attachments/auto-attachments.php on line 249

    Warning: Illegal string offset 'fshow' in /home/house/public_html/xx/wordpress/wp-content/plugins/auto-attachments/auto-attachments.php on line 249

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.