Solved

word press permalinks - set just one post back

Posted on 2014-01-15
4
328 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
ID: 39784280
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
ID: 39784426
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
ID: 39784482
I still don't think there's a way to do it.
0
 
LVL 25

Accepted Solution

by:
James Rodgers earned 500 total points
ID: 39785120
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
With Wordpress gaining more and more popularity not only as blogging platform but as a shopping or CMS solution, it's worth to know which plugins are the first ones to grab and integrate with your website. We will briefly go over the most useful plu…
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 integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

911 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

16 Experts available now in Live!

Get 1:1 Help Now