Skip to content

Magenaut

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

permalinks

How to set permalink structure via functions.php

August 3, 2022August 2, 2022 by Magenaut

I’m setting up a WordPress Network and wanted all new sites to have the same permalink structure (i.e. “/%year%/%monthnum%/%postname%/”). I’m wondering if this is possible to do via hooks or hacks in functions.php, without having to rely on users to choose that structure.

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

Using underscores instead of hyphens in the permalink

August 3, 2022August 2, 2022 by Magenaut

What’s the best way to ensure that post and page slugs use underscores instead of hyphens, without needing to edit the slug manually (or updating the page manually)

Categories Q&A, Wordpress Tags permalinks Leave a comment

Custom taxonomy listing page when no term set (all terms)

August 3, 2022August 2, 2022 by Magenaut

I’ve created a custom taxonomy “foo” with rewrite slug “foo” and query_var “foo”.

Categories Q&A, Wordpress Tags custom-taxonomy, permalinks Leave a comment

Category archive by year with permalink support /category/YYYY

August 3, 2022August 2, 2022 by Magenaut

I am currently looking at creating a new type of site archive within WordPress that allows users to filter by category AND by year rather than the default category OR year.

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

Remove slug in taxonomy url

August 3, 2022August 2, 2022 by Magenaut

Just wondering, how can remove slugs from some URLS. I’m using a custom post type called exhibitors, and some taxonomies to define those exhibitors (eg: featured-guests, publishers etc.):

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

Where is the old post permalink slug stored?

August 3, 2022August 2, 2022 by Magenaut

I published an article with permalink slug:

Categories Q&A, Wordpress Tags database, permalinks, posts, slug Leave a comment

Categories’ hierarchy in URL

August 3, 2022August 2, 2022 by Magenaut

The posts in the website I’m currently working on have multiple hierarchical categories applied to each of them. For instance:

Categories Q&A, Wordpress Tags categories, hierarchical, permalinks, url-rewriting Leave a comment

Get page permalink without wpurl

August 3, 2022August 2, 2022 by Magenaut

I currently have an ID of a page that I want to use its permalink as the front of a permastruct of a CPT I’m setting up.

Categories Q&A, Wordpress Tags permalinks Leave a comment

Change link to other post to shortlink in the editor

August 3, 2022August 2, 2022 by Magenaut

Curently if we use the insert link dialog to insert a link to another post, WordPress always use the permalink of that post. The problem is when we change permalink structure, that link will be broken.

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

Semantic URL Custom Post Type and Taxonomies permalinks

August 3, 2022August 2, 2022 by Magenaut

I have created a custom post type with custom taxonomies. Now I need help with the permalinks.

Categories Q&A, Wordpress Tags custom-post-types, custom-taxonomy, permalinks Leave a comment
Older posts
Newer posts
← Previous Page1 … Page9 Page10 Page11 … Page15 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