Skip to content

Magenaut

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

Q&A

What does is_page_template() compare against?

August 1, 2022July 31, 2022 by Magenaut

Looking through the WordPress documentation, it says that is_page_template() compares against a “template name”, if one is provided.

Categories Q&A, Wordpress Tags codex, page-template Leave a comment

How to call WP3.5 Media Library manager?

August 1, 2022July 31, 2022 by Magenaut

In the past Media Library window could be called like this:

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

How to customize default wordpress editor?

August 1, 2022July 31, 2022 by Magenaut

Good to hear that Sonny (wordpress3.3) has the new editor API wp_editor() that gives us the ability to use multiple instances of the editor in our custom fields with ease.

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

Add class to before_widget from within a custom widget

August 1, 2022July 31, 2022 by Magenaut

I have a simple custom widget that asks for its width (that is used later in the front end). The width field is a select dropdown, so a user have predefined options.

Categories Q&A, Wordpress Tags core-modifications, hacks, widgets Leave a comment

How to set a custom post type to have viewable future posts

August 1, 2022July 31, 2022 by Magenaut

I’ve setup a CPT to act the same ways as posts but used to post event details.

Categories Q&A, Wordpress Tags custom-post-type-archives, custom-post-types, events, wp-query Leave a comment

Remove ?ver= from wp_register_script

August 1, 2022July 31, 2022 by Magenaut

I’m getting nags on google speed test regarding the querystrings in my scripts. So, I’m trying to remove them by passing false as the argument for that parameter. However, it does not seem to have effect:

Categories Q&A, Wordpress Tags wp-register-script Leave a comment

Changing post status in one click

August 1, 2022July 31, 2022 by Magenaut

I want to add custom button “Send for correction” somewhere near the “Publish” button. This custom button must change a post status from “Pending” to my own created status named “On correction”.

Categories Q&A, Wordpress Tags post-status Leave a comment

Add a Page without header and menus?

August 1, 2022July 31, 2022 by Magenaut

Is it possible to add a Page in WordPress, so that none of the header or the menus of the site appears on that page?

Categories Q&A, Wordpress Tags pages Leave a comment

Forcing all posts associated with a custom post type to be private

August 1, 2022July 31, 2022 by Magenaut

Does anyone know of a way to add code to the functions.php file which will automatically force all posts belonging to a custom post type to be “private” and/or “password protected” with a default password set?

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

Default table collation on plugin activation?

August 1, 2022July 31, 2022 by Magenaut

I’m following this to make my plugin auto-create a table when the plugin is activated, but what happens is that while all the tables (the whole db) are utf8_general_ci, the newly created table is latin1_swedish_ci… Why isn’t it also utf8? I thought it would also be utf8 by default since I have:

Categories Q&A, Wordpress Tags collation, database, plugin-development Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,536 Page2,537 Page2,538 … 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