Skip to content

Magenaut

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

Q&A

Broken? WP_Query and “attachment” as a post type

August 3, 2022August 2, 2022 by Magenaut

I have a gallery attached to a page. On that page, I’m running the following query:

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

Show author archive pages for authors with no posts

August 3, 2022August 2, 2022 by Magenaut

I have one page for each author, but if the author doesn’t have any posts I can’t get its variables, because the loop is empty.
The page returns empty, no avatar, no info and stuff, the whole site is empty.

Categories Q&A, Wordpress Tags 404-error, author, author-template Leave a comment

Pagination resolving to first page only

August 3, 2022August 2, 2022 by Magenaut

My pagination is only linking to the same posts that are on my front page.

Categories Q&A, Wordpress Tags pagination Leave a comment

How do I get posts that have a thumbnail in WP_Query?

August 3, 2022August 2, 2022 by Magenaut

I want to grab the 5 most recent posts that have thumbnails.

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

if (is_page(**PAGE ID**)) not working

August 3, 2022August 2, 2022 by Magenaut

I’m following this tutorial on adding Google Content Experiments code to header.php.

Categories Q&A, Wordpress Tags conditional-tags Leave a comment

RSS Feed Custom Title?

August 3, 2022August 2, 2022 by Magenaut

For some reason my RSS feed is repeating the site title twice without a space, obviously quite annoying.

Categories Q&A, Wordpress Tags hooks, rss Leave a comment

Counting number of posts in a category and its sub categories and displaying result using shortcode

August 3, 2022August 2, 2022 by Magenaut

I am trying to create a shortcode to display the posts count in a category.
I have successfully done this using this code:

Categories Q&A, Wordpress Tags categories, functions, php, shortcode, taxonomy Leave a comment

How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?

August 3, 2022August 2, 2022 by Magenaut

How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?

Categories Q&A, Wordpress Tags 404-error, htaccess, redirect Leave a comment

How to add a default item to a custom taxonomy?

August 3, 2022August 2, 2022 by Magenaut

WordPress default taxonomy (Categories) has the item Uncategorized by default. How to add a default item to a new custom taxonomy?

Categories Q&A, Wordpress Tags taxonomy Leave a comment

Get the content of a specific page (by ID)

August 3, 2022August 2, 2022 by Magenaut

I have the following front-page template made:

Categories Q&A, Wordpress Tags content, pages Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,406 Page2,407 Page2,408 … 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