Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function add_listing_page_rewrites()
- {
- global $wp_rewrite;
- add_rewrite_endpoint('articles', EP_PERMALINK);
- add_rewrite_rule('^(.+)/articles', 'index.php?category_name=$matches[1]&articles_list=1', 'top');
- flush_rewrite_rules();
- }
- add_action('init', 'add_listing_page_rewrites');
- ?>
Add Comment
Please, Sign In to add comment