![sp_TopicIcon](https://www.cyberseo.net/wp-content/sp-resources/forum-themes/default/images/sp_TopicIcon.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
1:00 am
![Avatar](https://www.cyberseo.net/wp-content/forum-avatars/defaults/userdefault.png)
January 25, 2019
![sp_UserOfflineSmall](https://www.cyberseo.net/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
hi. I’m trying to add PHP code to one of my feeds so if a given variable contains a string, then set a custom field with a value, and if not, set wirh other value.
The problem is that my php knowledge is just like 0. I can just google, and copy what I’ve seen :)
Right now, I added this code to the php box:
Login to see the code
But no matter what the variable contains, the custom field is always “@single”, even when I know the value is “album”, so it’s 100% sure I’ve done everything wrong :(
Any help, please?
Thanks you very much
Most Users Ever Online: 541
Currently Online:
14 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 86
s.baryshev.aoasp: 68
Freedom: 61
harboot: 56
Pandermos: 54
MediFormatica: 49
Member Stats:
Guest Posters: 337
Members: 2899
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1674
Posts: 8533
Newest Members:
ron.cloudycreek, miondsettowin, mieeimgroup, shopmazza, mag_one_net, 4aff.pmAdministrators: CyberSEO: 4027