Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you provide a pastebin.com of your settings using the import/export page, and also which permalink rules you’ve selected?

    I’m curious if I can repeat the same results on my own.

    Thread Starter Mosne / Paolo Tesei

    (@mosne)

    Of course!
    here my settings
    https://gist.github.com/mosne/36db9bffce0da6b60c64

    the permalink rule is set to
    · Post name

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly not sure why it’s happening that way, and I am able to recreate. Permalinks have always left my hair a little patchy, when they don’t work.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you ever find a solution for this issue, mosne?

    Thread Starter Mosne / Paolo Tesei

    (@mosne)

    hi, I was hoping that was a problem wordpress related…
    but it still gave the same query even with the latest version of wordpress.

    so I had to write a dirty workaround;)

    $year = (get_query_var('year')) ? get_query_var('year') : get_query_var('press-release');
        $monthnum = (get_query_var('monthnum')) ? get_query_var('monthnum') : (integer) get_query_var('page');
        $post_type = get_query_var('post_type');
        $wp_query->query = array("m"=>$year,"monthnum"=>$monthnum,"post_type"=>$post_type);
    
        $query_n = array_merge($wp_query->query, array ('post_type' =>'press-release', 'posts_per_page'=> 999, 'paged' => $paged ));

    .
    what if… it is a database corruption? Where you would go to check? Where are stored the rewrite url rules? Is it possible that this staff is cached ( maybe Transients API)? Can I check or purge it in some way?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I wager you’d know if you had any sort of database corruption going on, as other things would be behaving very wonky at the same time.

    Rewrite rules, last I checked, were stored in the options table, and visiting the permalinks page is supposed to flush/rebuild them. Never seen a case of rewrite rules being stored in a transient, and it wouldn’t make sense too either as transients are also stored in the options table.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘archive page for custom post type’ is closed to new replies.