Functions PHP Parse Error

Posted in: Newspaper
Post count: 25

Hi!

I am getting this parse error for syntax in line 1090 in the following code from my functions.php file. I got this error after trying to add code to the PHP after reading this article for adding photographer credit field in the Media Uploader. http://www.wpbeginner.com/wp-tutorials/how-to-add-additional-fields-to-the-wordpress-media-uploader/. Please help!

Post count: 7909

Hi,

Please try to add this code in functions.php file – http://pastebin.com/nTZAnXpphttp://screencast.com/t/pDYioLpox

Thanks!

Post count: 25

THanks for getting back to me.

I had to revert back to the original functions.php file that came with theme because I screwed something up. No biggie. Then I added the code that you gave me at the end of the PHP and the fields showed up to enter the information with the media upload which is great. And then I added the line below to get it to display (as the article I read told me to). But it’s not displaying under the photo. Also, when adding a TagDiv Slide Gallery photo credits are not displaying anywhere. This is really my biggest issue. I am trying to get photo credits to display when using a gallery in a post. That is all I really want! Any help is greatly appreciated

echo get_post_meta($post->ID, ‘be_photographer_url’, true);

Post count: 6600

Hi,

I’ve removed the code added here in your first posts, please use pastebin or an alternative next time for sharing large amounts of codes or files: http://pastebin.com/

Use this code: http://pastebin.com/Q5WmAuWs and replace this part in the functions file: http://screencast.com/t/kXaGhlW5eP and this code: http://pastebin.com/bnTHzemM like this: http://screencast.com/t/u8mrOax1es into your functions.php file but first please make sure that you make backup of the functions file so you can revert to it if something goes wrong.

This is the result you should get: http://screencast.com/t/SNARo9iy0http://screencast.com/t/pRgPpzInujD

If you need a different approach on this we suggest you hire a freelancer to do it for you as you need custom work for this and we cannot provide any type of custom work at this moment. Sorry!
You can get one form site’s like: http://studio.envato.com/

Thanks

Post count: 25

I’m sorry about posting the code here. I will use pastebin next time. And unfortunately, I couldn’t get the photo credits to show up in the TagDiv Slider. When I pasted the code as you described, it made it so the image were no longer in the slider container and they were just stacked one on top of the other with no credits even displayed. So I went back to the original setup and I am going to try to find a work around.

Thank you though!

Post count: 6600

Hi,

I have tested this before sending it to your and it should work fine. Hope you find a way, let me know if you need other help on implementing it based on my instructions.

Thanks for the message!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.