Hi guys!
I searched previous threads and found an answer to this question (with the same title) from Flynn. However, I am getting an error message.
Flynn said: Add this to the bottom of Atahualpa's functions.php
<?php function replace_menu_link($string) {
return str_replace('http://www.yoursite.com/link/to/dummypage/',
'http://www.othersite.com/link.html', $string);
}
add_filter('wp_list_pages', 'replace_menu_link');
?>
Now, to be clear on what I did, I literally did what he said and added this as an additional <? ?> section after the last ?> of the original function.php code. My specific code is:
<?php function replace_menu_link($string) {
return str_replace('http://bestbiztips.com/quickmedquote/web-conference/',
'http://wc.iboomerang.com/skin-iboomerang/join.jsp?p=7711106', $string);
}
add_filter('wp_list_pages', 'replace_menu_link');
?>
Doing this, I get the following error:
Parse error: syntax error, unexpected T_STRING in /home/content/a/b/x/abxnetwork/html/quickmedquote/wp-content/themes/atahualpa/functions.php on line 1059
The website I am working on is for a client: http://www.bestbiztips.com/quickmedquote. I want the Web Conference page to go to an outside URL.
I am not conversant in PHP, so this is pretty Greek to me.
What am I missing?
Thanks so much!
KIP