Skip to content

Magenaut

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

Q&A

CSS classes for theme

August 3, 2022August 2, 2022 by Magenaut

Does anybody know predefined (suggested by WP) CSS classes which should I use in my theme?

Categories Q&A, Wordpress Tags css, theme-development, themes Leave a comment

How can I hide a category from Contributors in the edit/add new post screen?

August 3, 2022August 2, 2022 by Magenaut

I have a situation where I need to hide a specific category and it’s children from users who are logged in as Contributors. I don’t want them to see this category and it’s children in the categories meta-box on the add new post screen.

Categories Q&A, Wordpress Tags categories, customization, user-access, user-roles Leave a comment

Get post content from outside the loop

August 3, 2022August 2, 2022 by Magenaut

Is there a way to get the content from another outside the loop? The ID is 302 and I need to display the content of that on another page.

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

How to enqueue script if widget is displayed on page?

August 3, 2022August 2, 2022 by Magenaut

I created a widget that uses a jquery plugin, and I used is_active_widget to enqueue the script, it’s working fine but it’s also including the script even on pages that doesn’t show this widget.
so is there a way to only enqueue the script if this widget is showing ?

Categories Q&A, Wordpress Tags theme-development, widgets, wp-enqueue-script Leave a comment

How to use get_template_part()?

August 3, 2022August 2, 2022 by Magenaut

Could someone please explain to me how this function works? I know what it does but when I look at the source code in the twenty_ten template, I don’t get how all loops are being collected in one single loop.php ( I saw that file too).

Categories Q&A, Wordpress Tags get-template-part Leave a comment

Remove taxonomy base or term from url

August 3, 2022August 2, 2022 by Magenaut

I know there are a lot of posts about this here, but NONE of them have answered my problem.

Categories Q&A, Wordpress Tags custom-taxonomy, slug, url-rewriting Leave a comment

Can I refresh the thumbnails programmatically?

August 3, 2022August 2, 2022 by Magenaut

I would like to be able to refresh the thumbnail cache programmatically, not sure where to hook it, but at present any design changes mean re-uploading loads of images!

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

Archive listing of posts by publish year (multiple years)

August 3, 2022August 2, 2022 by Magenaut

I have an archive page showing all blog posts (in a specific category). With a growing number of posts, I want to separate these by publish year. For example (simplified), I’d like the following:

Categories Q&A, Wordpress Tags archives, categories, date, php, sort Leave a comment

How would you require and automatically download dependent plugins?

August 3, 2022August 2, 2022 by Magenaut

Was wondering if there was a class or programming technique that would allow me to check for the installation and activation of a particular plugin and if said plugin were not installed, to have it downloaded from WordPress’s plugin repository?

Categories Q&A, Wordpress Tags plugin-development, plugins Leave a comment

How to add an admin notice upon post save/update

August 3, 2022August 2, 2022 by Magenaut

I have a post type the uses post_save to take the address from the post-meta and retrieve the lat/lng coordinates from the Google API. I need a way of notifying the user if there was an issue with retrieving the coordintes. I tried using admin_notices, but nothing displayed:

Categories Q&A, Wordpress Tags plugin-development, posts, wp-admin Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,422 Page2,423 Page2,424 … 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