Correct solution provided by Milo in comment above. Pretty permalinks were set to plain in the admin interface and this evidently causes the WP_Rewrite to silently do nothing. I’m posting the answer here so I can mark something as correct/complete so this shows as answered. Am I doing it wrong?
Related Posts:
- Can I write ‘RewriteCond’ using ‘functions.php’?
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Newbie question: no index.php? in my plain wordpress permalink
- Static variable and add_rewrite_rule?
- Apache Fallback instead of add_rewrite_rule
- Performance impact of rewriting WordPress URLs
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- Append query string to all URL’s
- custom rewrite rule help! Custom rewrite rules not applying to custom post type
- custom url rewrite for wordpress
- Create custom permalinks to show Custom Post Type’s relationship?
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- How to override url params with rewrite rules vars?
- Using rules in Posts
- WordPress Rewrite Rule
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- Change permalink structure specific category
- Rewrite rule for wp
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- add_rewrite_rule questions
- rewrite_rule – working fine but broken for pagination
- how to exclude admin page from add_rewrite_rule in wordpress
- WordPress add parameters with friendly url structure
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
- Same Custom Post Type Slug and Custom Taxonomy Slug, with hierarchial unique permalink structure
- How to Dynamically Change the author_base URL Slug by Language in WordPress?
- How does WP work in conjunction with a web server?
- How to use if statement in an array? [closed]
- Custom Pagination is Broken
- Display an image if odd number of posts in grid
- How to check if a PHP string is different than meta field?
- Can’t save php string to a custom field
- HTML escaping data with ajax requests
- add_filter only for front office
- WordPress comment submit button substitutes/options
- Blob file download problem
- How to make container class in PHP
- Using and saving custom dropdown boxes on user profiles
- Copy taxonomy terms from one post to another programmatically
- Error using WordPress $wpdb object to get result from custom table
- How to loop through all the attached images in a post, and get their url one by one
- How to array only one key from another array
- Sidebar not appearing in footer, but it appears everywhere else!
- How to create table in wordpress without plugin? [closed]
- Use Tags to initiate Search
- How can i show post_class() within output loop?
- Search form does not work in my website
- Show About and Contact Us page when they’re clicked in the top menu.
- How to remove ?p= from wordpress short links
- How to Disable WordPress Page Revisions?
- Display custom field on 404 page outside loop
- single.php with different look by category
- How i can get post data from database when i am getting post id from url in wordpress
- WordPress Block developer from exporting Database via PHP
- How to retrieve the data from the sever and displaying it in a page?
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Hook called before text widget save
- Is There A Way To Make Theme Files Accept Shortcodes?
- WordPress Ajax Always returning 0
- Is there any way to get a drop down list of time zones?
- src script only works on home page?
- php within html within php
- Conditional statement for dates
- Filtering a function’ output for a new continued function
- get_total () returns 0 – woocommerce [closed]
- Why does this update_post_meta function not delete the custom field itself?
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- How does WordPress interpret the php code?
- get_template_part() not firing within a switch statement when template has new WP_Query
- add onchange to select in a wp form
- WordPress Customizer Default Image
- How to list commenters and days since last commented
- How to show/hide php table rows based on the content of custom fields
- How can I include shortcodes within PHP?
- How to execute html code inside php?
- PHP Warning: strip_tags() expects parameter 1 to be string?
- Run str_replace on title and save the output to a custom field
- Which function crops images in wordpress?
- Using a $GET parameter from a URL, to redirect to a URL (WordPress)
- How to determine from a different folder (outside wordpress) if a visitor is logged into WordPress
- WordPress function and string as variable?
- Delete taxonomy and delete all post related it
- Is a series of update_option calls safe, performance wise?
- plugin add action hook is not working :
- How to call multiple functions from multiple files into a WordPress page template [closed]
- Theme’s Options Page included with require_once *.php in functions.php not visible anymore
- wp-options keep crashing please help
- wp_insert_post: array only. wp_update_post: array|object (?)
- what do I replace get_bloginfo with and where do I find all instances of it?
- Remove dash from blog title wordpress
- Using data sent via AJAX in multiple functions on a WP plugin
- Querying Database with wpdb
- What is the difference in the WP memory limits?
- Limit Taxonomy Output in Conditional Statement
- Problem with AJAX in wordpress plugin
- WordPress archive page showing 404 Error [duplicate]
- wp_redirect only works on main site and not on other sites
- How to remove coupon dropdown feature
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?