Skip to content

Magenaut

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

Q&A

Remove parent category from permalink? Basically only have the child category?

August 4, 2022August 3, 2022 by Magenaut

I think there used to be an out-dated plugin to do this. Is there any way to do this easily with just a little code? We prefer not to rely on a plugin since that makes us dependent on the developer to keep it up-to-date.

Categories Q&A, Wordpress Tags categories, permalinks Leave a comment

Should Plugin Folders Include a Blank index.php File?

August 4, 2022August 3, 2022 by Magenaut

WordPress itself, in the wp-content folder, includes an empty PHP file which looks like this.

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

Display all posts in a custom post type, grouped by a custom taxonomy

August 4, 2022August 3, 2022 by Magenaut

I’m working on a member page where I use a custom post type with a custom taxonomy. My custom post type is called member and my custom taxonomy is called member_groups.

Categories Q&A, Wordpress Tags custom-post-types, custom-taxonomy, loop, wp-query Leave a comment

Modifying the main editor priority

August 4, 2022August 3, 2022 by Magenaut

I want the main WordPress post editor to appear below some of my meta boxes (generated by Advanced Custom Fields).

Categories Q&A, Wordpress Tags editor, metabox, wp-editor Leave a comment

Using pre_get_posts on true pages and static front pages

August 4, 2022August 3, 2022 by Magenaut

I have done quite extensive research on how to use pre_get_posts on true pages and the static front pages, and it seems that there is no fool proof method.

Categories Q&A, Wordpress Tags frontpage, pages, pre-get-posts Leave a comment

$GLOBALS[‘wp_the_query’] vs global $wp_query

August 4, 2022August 3, 2022 by Magenaut

What is the difference between $GLOBALS['wp_the_query'] and global $wp_query?

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

When to use WP_query(), query_posts() and pre_get_posts

August 4, 2022August 3, 2022 by Magenaut

I read @nacin’s You don’t know Query yesterday and was sent down a bit of a querying rabbit hole. Before yesterday, I was (wrongly) using query_posts() for all my querying needs. Now I’m a little bit wiser about using WP_Query(), but still have some gray areas.

Categories Q&A, Wordpress Tags get-posts, pre-get-posts, query-posts, wp-query Leave a comment

Exclude post ID from wp_query

August 4, 2022August 3, 2022 by Magenaut

How can I exclude one specific post from a WP_Query query? (For example, show all posts apart from a post with the ID 278)

Categories Q&A, Wordpress Tags exclude, wp-query Leave a comment

Custom query with category exclusion and post-meta “whitelist”

August 4, 2022August 3, 2022 by Magenaut

I have two widgets, one shows News while the other shows everything except News (We’ll call the second one Blog). The blog portion is currently working correctly.

Categories Q&A, Wordpress Tags categories, custom-field, post-meta, wp-query Leave a comment

Get All Images in Media Gallery?

August 4, 2022August 3, 2022 by Magenaut

Is there a way to fetch the URLs of ALL images in the media gallery?

Categories Q&A, Wordpress Tags media-library Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,323 Page2,324 Page2,325 … 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