Skip to content

Magenaut

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

Wordpress

Return $post_id when DOING_AUTOSAVE?

August 4, 2022August 3, 2022 by Magenaut

I see the following pattern over and over, on this site and on other places:

Categories Q&A, Wordpress Tags actions, code, customization, save-post Leave a comment

Host wp-content on other domain, much like a CDN

August 4, 2022August 3, 2022 by Magenaut

Would it be possible to host wp-content on another domain, so that all the uploads and images would go and load from there?
If so, how would I go about configuring wordpress to do this, preferably without using a third-party plugin?

Categories Q&A, Wordpress Tags cdn, content Leave a comment

strange characters in wordpress website displayed for visitors

August 4, 2022August 3, 2022 by Magenaut

Fixed LiteSpeed web server support

Categories Q&A, Wordpress Tags characters, compression, errors, plugin-w3-total-cache Leave a comment

how to create my own edit.php admin page code or template for my custom post type

August 4, 2022August 3, 2022 by Magenaut

Most plugins try to hide the components of the edit.php screen on wp admin and replace it with meta boxes to create the needed layout and fields for the custom post type.

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

get images attached to post

August 4, 2022August 3, 2022 by Magenaut

I want to have the ability to use pictures from the media library in a jquery slider on the home page so that it’s easy for someone else to update the pictures without having to hardcode it. I have attached a bunch of photos to a post and tried this

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

wp-content/db.php : where is this file?

August 4, 2022August 3, 2022 by Magenaut

At the top of the source file wp-includes/wp-db.php I can find the following comment:

Categories Q&A, Wordpress Tags wpdb Leave a comment

How do I create a widget that only allows a single instance?

August 4, 2022August 3, 2022 by Magenaut

How do I create a widget that only allows a single instance of a widget to be added through the WordPress interface?

Categories Q&A, Wordpress Tags api, customization, single, widgets Leave a comment

Can i hide the attachments from media which I uploaded from front end?

August 4, 2022August 3, 2022 by Magenaut

I have some section where user can upload CV and profile images,

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

How to Make a Custom Dashboard Widget to Display Custom Notification from Admin?

August 4, 2022August 2, 2022 by Magenaut

I am looking for a way to achieve the following:

Categories Q&A, Wordpress Tags dashboard, members, widgets Leave a comment

Accessing two databases

August 3, 2022August 2, 2022 by Magenaut

I have two databases on my server, and wanted to know is there a way to access both databases from wordpress? My thought is adding the second set of credentials to the wp-config.php.

Categories Q&A, Wordpress Tags database, wp-config Leave a comment
Older posts
Newer posts
← Previous Page1 … Page247 Page248 Page249 … Page430 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