I have a WordPress website with almost 100 posts. The current permalink structure is [url removed, login to view]%postname%/, and I want to change this to [url removed, login to view]%category%/%postname%-%post_id%. I'm redesigning the website with a new theme, and need some scripts to help with the change.
Requirements for this job:
1 - Change permalinks/URL structure for all posts - BUT if the post was published before November 1, 2013 use the old permalink structure as the social sharing URL. I have a lot of posts that have a high number of Facebook Likes, Tweets, Google +1s and StumbleUpon likes - I need to keep the social counts for the old posts. I need a PHP script to place into my single post PHP template or header file that will automate this. I've been trying to alter the code as seen here... [url removed, login to view] but I'm not a developer! The key requirement is that I need to keep the social counts against the old URLs, but the new permalink structure must show in the address bar when you view the post on my site.
2. 301 redirect script - I think a regular expression can be written to automatically redirect my old permalink structure to the new one in .htaccess. If this is possible, I want this script provided also. I don't want to manually write out the redirect for each URL if I don't have to.
3. Code for social sharing buttons - as you see on one of my posts ([url removed, login to view]) there are 4 social sharing buttons. I need an updated script for each button that inserts the old URL as the social sharing URL.
For development, I'll setup a development environment on the existing [url removed, login to view] server, and give the developer FTP access and admin access to the theme. This should be all that's necessary (i.e. no cPanel or database access).
My key criteria for selecting a developer: I'm looking for a short and concise reverse brief (i.e. you tell me your understanding of the above requirements, to be sure we're on the same page), whoever understands this the best and can demonstrate PHP/regex/WordPress skills/experience will be selected for the job. Don't hesitate to ask questions to get a clear idea of this brief.
IMPORTANT: change to new permalink structure. New permalink structure = http://japantravelmate.com/%category%/%postname%