Skip to content

Magenaut

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

archives

How to hide protected posts from archive?

August 4, 2022 by Magenaut

Im trying to hide protected posts in WP from loop:

Categories Q&A, Wordpress Tags archives, posts Leave a comment

blog post not accesible on click

August 4, 2022 by Magenaut

im just developing a web page with the gutenbiz theme and im changing a lot of the features through the elementor webpage builder, i have my blog page set as a blog but the post im editing them on the elementor and then im publishing them,the problem now its that i cannot access this post … Read more

Categories Q&A, Wordpress Tags archives, blog, options, posts Leave a comment

Only show posts with a specific term of an associated taxonomy in a custom post type archive

August 4, 2022 by Magenaut

I have a custom post type “movie” with a taxonomy “period”. The “period” taxonomy has two terms: “current” and “past”.

Categories Q&A, Wordpress Tags archives, custom-post-types, custom-taxonomy, filters Leave a comment

Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’

August 4, 2022August 3, 2022 by Magenaut

And you’re then assigning this array as the query_vars. Now the query_vars is a pretty large object. And you’re basically overwriting the data in there and just adding your custom ones. This means that you ‘unset’ everything that is added per default.

Categories Q&A, Wordpress Tags archives, custom-taxonomy, feed, pre-get-posts Leave a comment

Remove “Category:”, “Tag:”, “Author:” from the_archive_title

August 4, 2022August 3, 2022 by Magenaut

I have the following code in my theme’s archive.php:

Categories Q&A, Wordpress Tags archives, functions Leave a comment

Custom Post Type Archives by Year & Month?

August 4, 2022August 3, 2022 by Magenaut

How do you display the archives of a Custom Post Type by Year & Month?

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

Custom post types – Use post_id in permalink structure when using has_archive => true

August 4, 2022August 3, 2022 by Magenaut

I recently asked this question Custom post types – Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain:

Categories Q&A, Wordpress Tags archives, custom-post-types, permalinks, url-rewriting Leave a comment

Sort results by name & asc order on Archive.php

August 4, 2022August 3, 2022 by Magenaut

I currently use the following code to list posts in Archive.php but I want the results to be ordered by name in ascending order, I have checked the codex but the answer isn’t clear to me, how can I get this working?

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

WP 3.1 – archive pages for custom content types possible now without a plugin?

August 4, 2022August 3, 2022 by Magenaut

I noticed that WP 3.1 supposedly has ‘new CMS capabilities like archive pages for custom content types‘, however, I can’t see that implemented yet?

Categories Q&A, Wordpress Tags archives, custom-post-types, customization Leave a comment

Sort custom-posts in archive.php via meta-key?

August 4, 2022August 3, 2022 by Magenaut

this question is strongly related to this question where I already got a working answer.

Categories Q&A, Wordpress Tags archives, pre-get-posts Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page5 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