Support » Fixing WordPress » Add Rewrite Rule URL Won't Save Rewrite Tag

  • I’m pretty much following the codex ( to add a custom permalink structure for a page to have urls that contain a unique hash at the end, like this:


    But with my code, the page simply erases the last part of the url and redirects you to


    I have a feeling it’s something extremely obvious… Any ideas what I’m doing wrong?

    add_action( "init", "pleasing_permalinks" );
    function pleasing_permalinks() {
    	add_rewrite_tag( '%hash%', '([^&]+)' );
  • The topic ‘Add Rewrite Rule URL Won't Save Rewrite Tag’ is closed to new replies.