Skip to content

Filter stencil_force_permalink removes the ability to set query_vars #2

Description

@wgroenewold

When I want to add a query var with:

function add_query_var( $public_query_vars ) {
    $public_query_vars[] = 'horse';

    return $public_query_vars;
}

it gets overridden by stencil_force_permalinks. A workaround is

add_filter( 'stencil_force_permalink', function(){return false;} );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions