Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

attachments

Bulk term assignment for attachment taxonomies

August 3, 2022August 2, 2022 by Magenaut

I’ve created a custom taxonomy for attachments.
Everything ok, but now I want the ability to bulk assign its terms to attachments using the default wordpress media admin (‘upload.php’) bulk actions.

Categories Q&A, Wordpress Tags attachments, bulk, custom-taxonomy Leave a comment

How to create an attachments archive with working pagination?

August 3, 2022August 2, 2022 by Magenaut

This might sound like query_posts with pagination problem number 2103024 but I think this one might be special.

Categories Q&A, Wordpress Tags archives, attachments, query-posts Leave a comment

How to display a shortcode caption somewhere other than the_content

August 3, 2022August 2, 2022 by Magenaut

I want to disable shortcode captions for posts in one of my themes, and display the content elsewhere, such as in a sidebar.

Categories Q&A, Wordpress Tags attachments, captions, filters, images, shortcode Leave a comment

URL rewrite with add_rewrite_rule and attachment_id

August 2, 2022August 1, 2022 by Magenaut

I’m trying to add a rewrite rule to make this:

Categories Q&A, Wordpress Tags attachments, rewrite-rules Leave a comment

How can I remove fields in the attachment editor?

August 2, 2022August 1, 2022 by Magenaut

Is it possible to remove a default attachment field from the attachment editor, for example the “Caption” field ?

Categories Q&A, Wordpress Tags attachments, custom-field, editor Leave a comment

File upload from front-end form (as attachment) not working

August 2, 2022August 1, 2022 by Magenaut

I have a front-end form that is supposed to allow the user to upload a CV which is then sent along with the rest of the form as an attachment. To do so I have used wp_handle_upload() like so:

Categories Q&A, Wordpress Tags attachments, uploads, wp-mail Leave a comment

Programmatically adding images to media library

August 2, 2022August 1, 2022 by Magenaut

I am trying to programmatically add multiple images to media library, I uploaded the images to wp-content/uploads, now I try to use wp_insert_attachement.

Categories Q&A, Wordpress Tags attachments, images, media-library Leave a comment

How to add media from front-end to an existing post?

August 2, 2022August 1, 2022 by Magenaut

Golden Apples Design created (as far as I know) the media upload function that many people on WP.A and elsewhere seem to recommend. But all of the Q&As I can find on StackExchange deal with creating an entirely new post.

Categories Q&A, Wordpress Tags attachments, front-end, uploads Leave a comment

How to upload image from front end and save in media library?

August 2, 2022August 1, 2022 by Magenaut

I am working on a plugin .I want to upload image from front end i.e by input type="file".I did lot of google for it but could not upload image .Here is my code for uploading image

Categories Q&A, Wordpress Tags attachments, uploads Leave a comment

How does WP media uploader create the 3 different sized images, and how can I duplicate it

August 2, 2022August 1, 2022 by Magenaut

I have finally!! got this thing I’ve tried about 12 times to make and 12 different ways, but finally got it to work,… sort of.

Categories Q&A, Wordpress Tags attachments, images, uploads Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 Page8 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress