Archived topic
Custom field for image not being pulled in
16 replies · Started by Yael on June 26, 2021
Hello,
Working with the dynamic elements in GP and Blocks and have a custom field for a photo that is not being pulled in; all other custom fields work great but custom field with photo not so.
Here's a 2 minute screencast showing the issue I'm having.
https://share.sendspark.com/view/429m1sjhu5b09syu
Any ideas how I can resolve this?
thank you, Yael
One additional follow up: I also have a custom field that pulls in a Vimeo video; that too is not being pulled in in GP Dynamic post meta.
You can see the portfolio item using Beaver Themer here:
https://pixelhappy.co/portfolio/jessica-eary/
So it's not the custom field for an image and the custom field for a video that I don't believe I can pull in via the new dynamic options.
Yes?
I figured out how to get the Vimeo image: I updated the POD field to wysisyg and used Vimeo embod code :) it's working; I love these new GP dynamic options and GP blocks pro!
Thank you so much.
Now if I can figure out a way to pull in that custom image field :)
Thats awesome - really great to see this being used with PODs!
Is it possible to see the site with the Block Element and the background image set with the Post Meta option ? I just want to inspect the HTML to see what its actually doing if anything.
Sure, the staging site is currently password protected: pixel2021
https://staging.pixelhappy.co/portfolio/jessica-eary/
The image should appear in the right hand side of first content block (Intro / Project Overview)
The portfolio/jessica-eary/ link keeps redirecting me back to the front page ?
probably the password protect; I've disabled that entirely for now so you should be able to access without the password required
OK so it is outputting just the page URL in the background CSS - so its doing something.
What field type is the Custom Field and what does it contain? does it have the full url to the image?
The custom field type is File/Image/Video and you then add the image to that custom field
I was thinking of converting the field type to WYSIWYG and then adding the image via text editor (sort of how I did the Vimeo embed).
I'm trying that now.... and that didn't work either.
Is the custom field returning the ID of the image or the URL? If it's returning the ID, is it possible to test it with the full URL?
Let me know :)
I wish I could answer this, Tom; all I know is the image is added to the custom File/Image field via the Add file button.
On the live site using Beaver Themer, the field returns the full image URL
https://pixelhappy.co/portfolio/jessica-eary/
On the staging using GP Element Block
https://staging.pixelhappy.co/portfolio/jessica-eary/
It doesn't seem to pull in anything.
Image should be to the right in the first content block (Project Overview)
Is it possible to use a regular text field instead of the File/Image field, just to test?
I have a feeling we need to check if the value is an ID or a URL in the plugin. If that's the case it will be something we fix in 2.1.
I changed the field to plain text and added the full url image; the image loads.
Does that help?
Using the image ID works just fine; thanks so much for the dynamic stuff! it's awesome.
The image ID works, or the URL? Glad we got something working! :)
Really like your site and use of the dynamic options - thanks for sharing!