April 29, 2014 at 10:14 AM #21258
I am using SLP4 with Plus Package, Enhanced Results and Widgets on WP 3.8.3.
My problem is the featured location css code not beeing added to the result. It’s set in results layout (see screenshot) and the location is set to featured, but the css class is not beeing added. I am using a changed version of the default theme, but also the default themes are not working. The SLP is called via shortcode [SLPLUS only_with_tag=”Installateur”]
Thank you for your help
- This topic was modified 2 years, 7 months ago by Bjoern. Reason: tags
- This topic was modified 2 years, 7 months ago by Bjoern.
Attachments:You must be logged in to view attached files.May 5, 2014 at 2:54 AM #21455May 5, 2014 at 3:23 AM #21457
changing the shortcode from [slp_location featured] to the german translated version of the field to [slp_location favorisiert] did the trick. Now featured locations get the class 1 added, I can work with that.
Maybe this should be written somewhere in the documentation.
BjörnMay 6, 2014 at 11:43 PM #21547
Good to know. I had no idea the extended data fields were translated at that level as well!May 7, 2014 at 3:13 AM #21553
Maybe my other problem with featured locations is located at this somewhere too.
I’ve taken a look at the database and the database field in wp_sl_extendo is called “favorisiert” (translated version of featured). Maybe there is a problem too, your code trying to write into featured and the output is trying to access from favorisiertMay 10, 2014 at 10:19 PM #21627
Thanks for the report. I am going to get someone to look into this for the next patch release. It needs to be 100% consistent. It is OK if it translates the field (though I’d prefer it be consistent with the base plugin) but must read/write using the same convention.
I can also see in the code that the sort orders will not work either if the field name is NOT ‘featured’.
The translated name is going to cause a LOT of problems. It also makes it a LOT harder to support.
Now I have a bigger problem. Legacy systems will have a column with a name in the native language like “favorisiert” but it really should be in English as “featured” for support/coding/documentation consistency. Changing it is going to be a nightmare for existing installations (like yours) but not changing it is going to be a multi-year nightmare for support/coding/documentation. 🙁
May 21, 2014 at 5:30 AM #21828
- This reply was modified 2 years, 7 months ago by Lance Cleveland.
Is there a way to force SLP to work in english? Only SLP, the WP Backend needs to stay local for my customer, but I manage SLP and can work with the original.
The problem with the columns titles in german/english mashup is really messing up a feature I need and bought especially for this.May 26, 2014 at 4:02 PM #21986
The latest version of Enhanced Results will update the data fields to be in English. Read this post for details:
You must be logged in to reply to this topic.