I couldn’t find a decent WordPress Way of doing this but a very effective Alternate. Please BACKUP your database before applying this solution.
I went to PHPMYADMIN and applied this query:
UPDATE wp_posts
SET post_name = CONCAT(post_name,’-nj’)
where post_type=”page” and post_parent <> 0
and all https://domain.com/county/city
urls became https://domain.com/county/city-nj
Please note that all “CITY” pages are child page of “COUNTY” pages in my case.
Related Posts:
- Need help with friendly URL’s in WordPress
- Why does WordPress 3.0.4 keep deleting the contents of the .htaccess file?
- how to flush custom author rewrite rule
- Add filename to attachment page url
- Creating Search Engine Friendly URL’s with Word Press
- WordPress slugs and 404 handling takes preference over folders in site root?
- How to encode author ID in the author permalink
- WordPress Custom File Permalink
- How can I create a permalink with two categories, with the order based on the parent category?
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Create a url structure for my blogs based on categories and sub-cats
- Woocommerce product permalink not working
- Create page as a file in my theme?
- Don’t change Custom Post Type slug to unique value
- If custom image header does not exist display text header
- How can style text like this in wordpress
- Add or Create Custom Structure Tags to Permalink
- How do I change my permalink structure to a custom structure on an established blog?
- getting a 404 page for all pages except home. possibly permalinks
- Create Miltiple Category Base
- How to get Previous Visited Page Information
- Adding a custom field to a slug
- how can custom permalink structure use for specify custom post type
- URL issue after setting up Custom Structure in Settings >> Permalinks
- Custom permalink structure for posts in certain categories
- How to add rewrite rule for product compare page?
- Combine Categories & Custom Taxonomy
- Structure of post types for TV Shows and episodes
- Translate site in own text-language [closed]
- Smarter Document Management links between three WordPress sites sought
- permalink of word press in htacess
- Move text from the side of image to below image [closed]
- How do i edit text that is not in the customization menu
- How do I enable the text editer in my WordPress theme? [closed]
- For one linked image per post, override that link with a permalink when on the main page
- I need to display post related info
- How to keep the /blog slug even in single post slug
- Show post content in two different places without redirect
- Permalink Listing WordPress
- Redirection after Category Change for Custom Structure
- Is there a flowchart for WordPress loading sequence?
- How do register_sidebar() and get_sidebar() work together?
- Is it possible to change the attributes of a registered style or script before it fires?
- how to change “published date” format on edit.php (Posts page)?
- How to change submit button value in comment from “Post Comment” to “Send”
- WordPress custom post types breaks permalink on theme reinstall
- Creating a searchable A-Z listing of hundreds of companies/services
- Show attribute description when filtering by that attribute
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- Add custom column to Users admin panel with Types user custom fields?
- woocommerce Add custom field set like billing fields
- Adding action to save_post, post needs to be saved twice for function to work
- Calling a php file from a javascript file in wordpress
- 1 bit audio player
- Outputting posts from post id´s in variable
- Auto redirect after session expire, but only for one user
- How to get pages id in array in get_pages?
- Access post meta in future_to_publish function
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- How to create a completely private wordpress with multiple membership levels
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- custom meta box for page default template
- How to host 2 subdomains as lookalike destinations under one master domain?
- “An automated WordPress update has failed to complete – please attempt the update again now”– But there is no .maintenance file
- How do I redirect a post url to a custom url?
- How could I verify whole WP directory before/after working with a freelancer? [closed]
- How to customize
- Modify files without losing customization after updates
- Determine if action was executed in functions
- Extending core class in plugin
- Is it possible to make wordpress LMS
- Saving contact form 7 data into custom Table
- Hiding Short Description in Shop Page, WooCommerce
- Media Upload not working after hiding some elements from functions.php
- How to add WordPress JS Script Links
- Customizing the gallery of the post correctly
- Will WordPress updates remove Gutenberg Additional Classes?
- WP_Query – sort the results by meta value custom attribute wocoomerce
- Multiple header style under meta box
- Show products per page drop down
- Client viewing before deployment
- How to have different background image based on post category
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Run a welcome tour after multisite creation?
- How to Password Protect whole site except for some subdirectories
- Custom dropdown search form that allows users to select option B based from Option 1
- Header image doesn’t show up on page
- How to get name and email value from a custom form and add it to campaign monitor subscriber list?
- Auto Linking Words But Only One Time
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- “Static” pages within a theme
- Assign classes to Custom fields
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Changes to code not displaying
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?
- Multi color post title by using custom javascript inside the gutenberg editor?
- Add custom styles to the Raft theme