The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.
Topic RSS
7:38 am
September 10, 2009
OfflineHi, I'm using wordpress 2.8.4 and All in One SEO Pack version 1.6.5
I've found that when I use the link_before and link_after parameters for wp_list_pages any menu labels I've set revert back to the title text, so for example In the navigation menu I want it to have the first link text as "Home". But I want to have "Welcome to my site" for the title of that page.
This has been working completly fine, using the plugins Menu Label field.
However I need to insert an empty span within anchor text so I can use the css sliding doors technique, so basically I want it to output something like
<li><a href="#">Home<span></span></a></li>
When I use the link_after parameter for wp_list_pages the plugin stops working properly, the span appears but the menu label text becomes the same as the title text like
<li><a href="#">Welcome to my site<span></span></a></li>
is this a bug or am I doing something wrong?
heres the php I'm using for wp_list_pages
<?php wp_list_pages('title_li=&link_after=<span></span>'); ?>
Any help would be much appreciated
2:54 am
September 10, 2009
Offline8:19 am
October 5, 2009
OfflineHi,
I've been having the same problem and discovered that it's to do with a regular expression assuming you won't have any HTML in the links produced by wp_list_pages. Not sure if we've using the same version, but my AIOSEO is version 1.6.6.2 and if you change line 668 of the all_in_one_seo_pack.php file to:
It should work.
Cheers,
Paul.
8:52 am
October 5, 2009
OfflineSorry that's not the full fix you also need to edit the aioseop_filter_callback function around line 678 and change the 'if' statement to:
Otherwise it'll strip out your span tags.
Cheers,
Paul.
7:01 am
September 10, 2009
Offline9:26 am
January 18, 2010
OfflineJust an update to this, the above regex needs to be modified slightly to work (missing some escapes), working code below:
Thank you Paul for your original solution, I was going slightly crazy!
4:59 am
September 10, 2009
OfflineMost Users Ever Online: 205
Currently Online:
26 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
romiojuliat: 102
yaoming987: 50
jintuy: 50
miki1986: 33
newshow: 28
karen1234: 27
Member Stats:
Guest Posters: 0
Members: 6356
Moderators: 3
Admins: 4
Forum Stats:
Groups: 5
Forums: 23
Topics: 1546
Posts: 3450
Newest Members: carofern@cisco.com, pronto, jessie, pbaylies, ninaeast, freda
Moderators: davecashmore (2), aaron (5), tempadmin (0)
Administrators: WordPress Professional (442), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)




Log In
Home



