WordPress.org

Ready to get started?Download WordPress

Forums

Auto Attachments
[resolved] Show attachment list at top of the page? (7 posts)

  1. kerms
    Member
    Posted 9 months ago #

    How can I get the list of attachments to show at the top of the page instead of the bottom?

    I noticed you mentioned it puts them beneath 'the_content'. I would like it display just underneath the Title

    Thank you for your help! Great plugin!

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

  2. Serkan Algur
    Member
    Plugin Author

    Posted 9 months ago #

    Hi kerms,

    You can use shortcode feature for this. Add shortcode before your content and image will shown after the title.

  3. kerms
    Member
    Posted 9 months ago #

    Thank you, this worked just as you described.

    Is there anyway to get it to appear automatically on each post that is created? The posts on my site are created by external users, so they will not know to create the short code.

  4. Serkan Algur
    Member
    Plugin Author

    Posted 9 months ago #

    Hi kerms,

    I'm glad if it works for you. I can add an option to auto attachments option panel. Also i can add a metabox to new post/edit post area for this . I add this suggestion to my To-Do list :)

    If you want to this now, you need to edit plugins' code.

    Open auto-attachments.php in wp-content/plugins/auto-attachments (make a backup before editing). Go to line 422 (i see 422 in notepad++). You will see insertintoContent function. You will need to edit this function (for single post). Find;
    $content .= get_attachment_icons();
    and change it to;
    $content = get_attachment_icons().$content;

    I think this code changes will work without shortcode.

    Have a nice day.

  5. kerms
    Member
    Posted 9 months ago #

    GREAT, THANK YOU!! I will wait for the update of the plugin as I trust you to do the update more than myself :-)

  6. Serkan Algur
    Member
    Plugin Author

    Posted 9 months ago #

    kerms, i will update plugin ASAP

  7. kerms
    Member
    Posted 9 months ago #

    WONDERFUL!!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.