Support Forum
yes, I understood that...
please post back here the code I gave you that you posted... use the code button in the editor...
all it does is search for the string you gave me (I have to assume you gave me the correct string) and replace it with the shortened url...
Visit Cruise Talk Central and Mr Papa's World
Steve, I used this code:
add_filter('the_content', 'my_ln_url', 9999); function my_ln_url($content) { $content = str_replace('http://www.linkedin.com/problem-with-post-edit-buttonttp://www.linkedin.com/in/', 'http://www.linkedin.com/in/', $content); return $content; } I have also tried like this:
add_filter('the_content', 'my_ln_url', 9999); function my_ln_url($content) { $content = str_replace('http://www.linkedin.com/problem-with-post-edit-buttonttp://www.linkedin.com/in/', '', $content); return $content; } and like this:
add_filter('the_content', 'my_ln_url', 9999); function my_ln_url($content) { $content = str_replace('http://www.linkedin.com/problem-with-post-edit-buttonttp://www.linkedin.com/in/', '/', $content); return $content; } but none of them seems to work...
so all three of those search for
http://www.linkedin.com/proble.....in.com/in/
is that really the string we are looking for? check the source of you page and make sure that is the exact url we are looking for.
The last two would not be correct... but did they have any effect?
what if you go to forum - integration - page and permalink and turn on the strict wp api opion?
Visit Cruise Talk Central and Mr Papa's World
Steve, I turned on the strict wp api and the template got all messed up!
I looked at the source of the Linkedin icon and the URL is
http://linkedin.com/problem-wi.....efanoprete
The last 2 (not correct) didn't have any effect at all.
so did you try:
add_filter('the_content', 'my_ln_url', 9999); function my_ln_url($content) { $content = str_replace('http://linkedin.com/problem-with-post-edit-buttonttp://www.linkedin.com/in/', 'http://www.linkedin.com/in/', $content); return $content; }
since the needle changed?
Visit Cruise Talk Central and Mr Papa's World
only explanation I can think of then is that the other plugin is adding the link in post content set up via js or something... and not sure how we would affect that...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)