Solved

word press permalinks - set just one post back

Posted on 2014-01-15
4
323 Views
Last Modified: 2014-02-17
I started a new blog here blog.advancedbrain.com

You will see there are two posts there.  When I launched with the first post, I had the permalinks set to the default  "?p=15"  So the first post went out and we got a lot of social engagement which boosted all the social numbers below that post.

Then, before launching the second post, I changed the permalinks to the option with the post title in the url.  I need to keep with that naming structure going forward.

The problem is, switching the naming loses all the social stats on that first post.  If I switch the permalinks back to default, the stats come back.  But I can't do that.  So my question is, is there a way to hack it so just that first post uses the default permalink and all the rest going forward use the one I have set it to now?
0
Comment
Question by:the_hero
  • 2
4 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
To the best of my knowledge, no. As near as I can tell, attempting to do it with mod_rewrite would put you in direct conflict with the WordPress rewrite rules and throw you into an infinite loop.  Hopefully I'm wrong someone will correct me.  

If it makes you feel better, the social stats are just for display on the site.  The SEO value of the prior social activity is unchanged as the ?p=15 still works.
0
 
LVL 1

Author Comment

by:the_hero
Comment Utility
Yes, i understand that the value was produced, but would like the perceived value back.  Thanks.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
I still don't think there's a way to do it.
0
 
LVL 25

Accepted Solution

by:
James Rodgers earned 500 total points
Comment Utility
you need to find where this line is generated
<div class="loginRadiusHorizontalSharing" data-share-url="http://blog.advancedbrain.com/ability-to-move-to-a-beat-linked-to-consistency-of-neural-responses-to-sound/" data-counter-url="http://blog.advancedbrain.com/ability-to-move-to-a-beat-linked-to-consistency-of-neural-responses-to-sound/" >

Open in new window


immediately above it you would need to add some code to override the variables used in the output string to change them back to post id

something like

if(is_single(15)){
$somevar = "http://blog.advancedbrain.com/?p=15";
}

Open in new window


where $somevar is the variable used in the actual string generation

it is a true hack and you will have to add that code back in every time the sharing plugin is updated
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
First things first, I say this in many of my articles, but in this one you can take it as fact. I am not in any way an expert when it comes to WordPress. I am strictly a user. I don't know the programming languages involved, and although I could pro…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now