Skip to content

Magenaut

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

attachments

Stop WordPress from reserving slugs for media items?

August 3, 2022August 2, 2022 by Magenaut

I am experiencing some odd behavior, that apparently happens “out of the box” with WordPress.

Categories Q&A, Wordpress Tags attachments, media, permalinks, slug Leave a comment

Broken? WP_Query and “attachment” as a post type

August 3, 2022August 2, 2022 by Magenaut

I have a gallery attached to a page. On that page, I’m running the following query:

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

How do I detach images from posts?

August 3, 2022August 2, 2022 by Magenaut

Firstly I’ve seen some topics like this, but they haven’t helped me.

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

Delivering a file instead of wordpress page

August 3, 2022August 2, 2022 by Magenaut

I’m trying to make a page where a user provides an ID of a attachment and the site will set the headers and deliver that file instead of a 404 page. so /download/1754 would lookup the attachment with that Id and output it for viewing/download depending on the file type.

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

How to paginate wordpress [gallery] shortcode?

August 3, 2022August 2, 2022 by Magenaut

I am using wordpress gallery shortcode I was wondering if there is anyway to paginate them without using a plugin.

Categories Q&A, Wordpress Tags attachments, gallery, pagination, shortcode, wp-query Leave a comment

Get all image from single page using this query

August 3, 2022August 2, 2022 by Magenaut

I’m having some trouble with this sample widget code. I want to get all images (Minus the post thumbnail) from a page called “Gallery” but for some reason this is pulling all uploaded images from the entire site.

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

Attaching media to custom posts without editor

August 3, 2022August 2, 2022 by Magenaut

I’m creating a custom post type, “gallery”, in which the admin should be able to upload images (these images would be attached to the post).

Categories Q&A, Wordpress Tags attachments, custom-post-types Leave a comment

Trying to hide buttons from Attachment window

August 3, 2022August 2, 2022 by Magenaut

To simplify the Media Library layout to users when uploading an image, sometimes i hide the following fields:

Categories Q&A, Wordpress Tags attachments Leave a comment

Programmatically adding images to the media library with wp_generate_attachment_metadata randomly fails

August 3, 2022August 2, 2022 by Magenaut

I am running the latest WordPress version (4.6) on a LAMP server (shared hosting) with PHP version 5.6.12.

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

Add_Filter example for wp_get_attachment_link

August 3, 2022August 2, 2022 by Magenaut

Let me preface by saying I don’t really understand Add_Filter, but I think that I want to be using it here. If not please let me know.

Categories Q&A, Wordpress Tags attachments, filters Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … 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