Skip to content

Commit

Permalink
POG para forçar a página de temas ser entendida como uma archive para…
Browse files Browse the repository at this point in the history
… o WordPress
  • Loading branch information
marcoamarelo committed Oct 30, 2014
1 parent dba48f5 commit f989328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion delibera_rewrite_rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ function delibera_nova_pauta_template_redirect_intercept() {
add_action('generate_rewrite_rules', 'delibera_temas_generate_rewrite_rules');

function delibera_temas_generate_rewrite_rules($wp_rewrite) {
// Cat = 1 é um POG para o WordPress que essa é uma página de archive
$new_rules = array(
"temas/?$" => "index.php?&tpl=temas",
"temas/?$" => "index.php?&tpl=temas&cat=1",

);
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
Expand Down

0 comments on commit f989328

Please sign in to comment.