Skip to content

Magenaut

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

Q&A

Filter to remove image dimension attributes?

August 4, 2022August 3, 2022 by Magenaut

I’m working on a site based on a fluid width css template which sets a max-width on images to the width of the column containing them, and I need to remove the inline width and height dimension attributes that WordPress adds to images.

Categories Q&A, Wordpress Tags filters, images, post-thumbnails Leave a comment

Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

August 4, 2022August 3, 2022 by Magenaut

After a server move, I’m unable to log in to my site. I get the “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” error when I try submitting the login form.

Categories Q&A, Wordpress Tags cookies, login, migration Leave a comment

Are there any hooks that alter the 404 logic?

August 4, 2022August 3, 2022 by Magenaut

Provided you have a 404 page defined in your theme, WordPress will display a 404 page if “tag” is defined in $wp_query->query_vars, and there are no posts matching that tag.

Categories Q&A, Wordpress Tags 404-error, hooks, plugins Leave a comment

Organizing Code in your WordPress Theme’s functions.php File?

August 4, 2022August 3, 2022 by Magenaut

The more customization I make to WordPress the more I start thinking about if I should be organizing this file or splitting it up.

Categories Q&A, Wordpress Tags admin, customization, wp-admin Leave a comment

How to manage ajax calls and JSON in wordpress

August 4, 2022August 3, 2022 by Magenaut

I have a custom post type that i want to access through jQuery – preferably using JSON.

Categories Q&A, Wordpress Tags ajax, jquery Leave a comment

How do I dequeue a parent theme’s CSS file?

August 4, 2022August 3, 2022 by Magenaut

My parent theme (Starkers) adds a CSS file that I’m trying to remove (I want to use @import instead so I can override styles more easily). Starkers has the following in its functions.php:

Categories Q&A, Wordpress Tags child-theme, wp-enqueue-script, wp-enqueue-style Leave a comment

How to log out without confirmation ‘Do you really want to log out?”?

August 4, 2022August 3, 2022 by Magenaut

Right now when I log out via:

Categories Q&A, Wordpress Tags logout Leave a comment

Should I use custom post types or a custom database tables for plugin development?

August 4, 2022August 3, 2022 by Magenaut

I’m fairly new to writing wordpress plugins, but I’ve jumped in the deep end already and I want to make sure I’m doing it “right” on my upcoming big project.

Categories Q&A, Wordpress Tags custom-post-types, database, plugin-development Leave a comment

Enqueue Scripts / Styles when shortcode is present

August 4, 2022August 3, 2022 by Magenaut

What is the idea way to register/enqueue scripts and/or styles for use in plugins?

Categories Q&A, Wordpress Tags conditional-content, shortcode, wp-enqueue-script, wp-register-script, wp-register-style Leave a comment

Custom column for changing post status via ajax

August 4, 2022August 3, 2022 by Magenaut

I’m currently trying to implent a new custom column at the page manage screen that will let me change the status (published/pending) of the different pages via an easy toggle link.

Categories Q&A, Wordpress Tags admin, ajax, columns, post-status, wp-admin Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,325 Page2,326 Page2,327 … 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