mhawksey / wp-evidence-hub

OER Research Hub - WordPress plugin
6 stars 1 forks source link

Clean URLs/ WordPress permalinks - evidence ones are broken [LACE] #36

Closed nfreear closed 10 years ago

nfreear commented 10 years ago

When permalinks are enabled, this is the situation:

Having looked at Apache server configuration, etc. it turns out the issue is with the extra rewriting done for the evidence post-type:

Excerpt from current PHP, showing the issue with rewrite -- it needs to be FALSE for LACE:

<?php
class Evidence_Template {

//...
    public function create_post_type() {
        register_post_type($this->post_type,
            array(
//...
                'rewrite' => array(
                    'slug' => $this->archive_slug,
                    'with_front' => false,
                ),
//...
mhawksey commented 10 years ago

Is country-map actually evidence or a standard page? The permalink structure for the plugin will interpret anything with the evidence slug as an evidence post type

nfreear commented 10 years ago

Hi, It's a page with a map, so no, not using the evidence post-type. I see your point. They've gone for a different site structure on LACE,

As long as you don't mind some extra configuration options, it shouldn't make any difference to the existing code for OER Map...

Nick

nfreear commented 10 years ago

Bug #37, need to review and document configuration options.

Closing.