?
Solved

word press permalinks - set just one post back

Posted on 2014-01-15
4
Medium Priority
?
357 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:Shaye Larsen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Shaye Larsen
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 2000 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

An earlier version of this article was originally posted on my personal blog at: ​http://www.brianjmatis.com/2014/07/07/enabling-nextprevious-post-links-in-wordpress/ Introduction In most blogs, a fairly common navigational element is to have li…
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 insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
This video teaches users how to migrate an existing Wordpress website to a new domain.

762 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