Skip to content

Magenaut

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

Q&A

WP function/filter for modifying http headers?

August 4, 2022August 3, 2022 by Magenaut

Is there a dedicated WP function, action or filter to use when adding/modifying the HTTP headers?

Categories Q&A, Wordpress Tags api, headers Leave a comment

What are PHP extensions and libraries WP needs and/or uses?

August 4, 2022August 3, 2022 by Magenaut

Codex loosely only mentions PHP version in server requirements, however PHP can be configured in pretty wide range of excluding/including different parts.

Categories Q&A, Wordpress Tags php, server Leave a comment

Display posts by month

August 4, 2022August 3, 2022 by Magenaut

I want to achieve something like this, I don’t know if it is possible and what would be the best way to do it:

Categories Q&A, Wordpress Tags customization, php, posts Leave a comment

SVG files not uploading since most recent WP update

August 4, 2022August 3, 2022 by Magenaut

I have a snippet in my functions PHP file that allows me to upload SVG files. Since upgrading to the latest version of WP today, I can no longer upload svgs. I also tried a second code snippet from CSS tricks website and that doesn’t work either.

Categories Q&A, Wordpress Tags svg Leave a comment

How to quickly switch custom post type singular template?

August 4, 2022August 3, 2022 by Magenaut

I have a custom post type called movies and I need to quickly switch the template that displays the movies cpt on the front end via a link. How can this be done?

Categories Q&A, Wordpress Tags custom-post-types, page-template, templates Leave a comment

Change attachment filename

August 4, 2022August 3, 2022 by Magenaut

Is there a function that allows me to change the filename of an attachment, based on the Attachment ID I have?

Categories Q&A, Wordpress Tags attachments Leave a comment

What is the difference between $paged and $page?

August 4, 2022August 3, 2022 by Magenaut

I’m creating pagination for my site. Hope everyone can explain to me what below code used for? Thanks in advance.

Categories Q&A, Wordpress Tags paged, pages, pagination, split Leave a comment

Custom post type – posts list – white screen of death

August 4, 2022August 3, 2022 by Magenaut

i am getting a weird error – white screen in the list of posts
for a specific Custom post type (just for that one)

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

Set JPEG compression for specific custom image sizes

August 4, 2022August 3, 2022 by Magenaut

I use various custom image sizes (by add_image_size) and I have set my JPEG compression to 30% with this filter:

Categories Q&A, Wordpress Tags compression, filters, functions, images Leave a comment

Set posts of a custom post type to be private by default?

August 4, 2022August 3, 2022 by Magenaut

Say I created a custom post type called ‘Private Posts’ ($post_type = itsme_private_posts) and want all posts under the custom post type to be set to ‘Private’ automatically when published i.e. by default. How do I do it?

Categories Q&A, Wordpress Tags custom-post-types, functions, posts, private Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,329 Page2,330 Page2,331 … Page2,571 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