Adding Custom Field using if/else statement
-
Hello –
I’m not a programmer… But I know enough to know that I don’t know enough.
On this site: https://1350kman.com you’ll notice that some of the posts have a little video icon next to them. They want to also have an audio icon for when they just have audio on their stories. The video is done with a Custom Field.
So I’ve duplicated the css to display the microphone icon that I’ve created, and uploaded this, as well as the icon. Next, in the list.php file, I’ve found this code which seems to control the “videoplus” custom field:
https://wordpress.pastebin.ca/2081909
I duplicated the video part, and added an audio part:
https://wordpress.pastebin.ca/2081907
when i test this on the site, the site will not display, and i only get an error which says:
“Parse error: syntax error, unexpected T_ELSEIF in /homepages/20/d278401371/htdocs/1350kman/wp-content/themes/playmaker6/assets/widgets/list.php on line 79”
Any assistance would be most appreciated!!
Andrew
- The topic ‘Adding Custom Field using if/else statement’ is closed to new replies.