Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter lerizzle

    (@lerizzle)

    So I’ve now got this:

    function add_testing_query_var() {
    global $wp;
    $wp->add_query_var(‘testing’);
    }

    add_filter(‘init’, ‘add_testing_query_var’);

    function add_testing_rewrite_rule() {
    add_rewrite_rule(‘testing=/(\d*)$’, ‘index.php?testing=$matches[1]’, ‘top’);
    }

    add_action(‘init’,’add_testing_rewrite_rule’);

    My problem is when I go to

    https://www.mysite.com/mypage/testing/2

    I get a page not found. Can anyone shed some light on this?

    Thanks.

    Dan

    hello there,

    Have you got any solutions for this problem?

    How can I turn those in nice permalinks?

    I have https://www.myURL.com/blog/?p=223

    Any direction to the answer would be appreciated.

    Thanks in Advance.

    Imran

    Thread Starter lerizzle

    (@lerizzle)

    I think what you are looking for is just the permalink setting in the sidebar. Click on it you’ll see.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks how to’ is closed to new replies.