CDCG
Sophomore
Just Getting Started
Member Likes (0)
Getting
"Fatal error: Call to undefined function wp_get_the_attachment_link() in /home/photonic/public_html/wp-content/themes/bp-scholar/attachment.php on line 16"
When trying to view images in gallery. This also seems to be affecting the ability to use an image for the Header (vs using text)
Responses (6)
Support Chimp (joined March 2010) Likes (0)
Hey there.
Can you please open the file:
/bp-scholar/attachment.php
And change this around line 16:
To this:
And let me know if that works.
Thanks.
Member (joined April 2012) Likes (0)
No more error, although the actual image still does not display.
Thanks!
Support Chimp (joined March 2010) Likes (0)
Do you have an exact link to where this happens so I can see and then try to replicate on my install?
I presume its a broken image now? Or just nothing?
If you can show me where this happens then I can look at it further.
Thanks.
Member (joined April 2012) Likes (0)
http://photonicvisions.com/?attachment_id=43
Support Chimp (joined March 2010) Likes (0)
Sorry, I gave you the function which just gets the image path. You need to change that line above to this instead:
That will get the image including HTML to display it. :)
That should fix you up and I'll get this reported to our developer for fixing in the next release.
Take care.
Member (joined April 2012) Likes (0)
Thanks! Much better :)
WordPress Questions?
We've got answers!
Find out more »