Skip Navigation

[Closed] Importing images with urls

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 8 replies, has 3 voices.

Last updated by Jamal 4 years, 10 months ago.

Assisted by: Jamal.

Author
Posts
#1805319
Screenshot 2020-10-09 at 10.04.37.png

Hi, I've imported a csv file with custom fields for all my posts. THe images for each post are retrieved from an online source with URL format. But I don't know how to get the images to show with the posts. The feedback I got earlier was this:

"So what you will need to do is to manually wrap the image in the img tags when you want to display it on the frontend."

If it helps, I'm following this toolset tutorial now: hidden link

#1805415

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

If you have imported the image links into a Types URL field and you want to display the images on the front-end, then you need to write the markup for the image yourself, but generate the src attribute dynamically using your types field.

If you are using Views you can add markup directly in the output editor, but if you were using Blocks you would need to add the markup in a suitable block, such as the Classic Block or the Fields and Text block, each in HTML mode.

So it may look something like

<img src="[types field='my-image-url'][/types]" title="[wpv-post-title]" alt="">
#1805503
Screenshot 2020-10-09 at 11.48.59.png

I'm using Views at the moment. I placed the code in the Output editor and tried to edit it to my field name (see screenshot). Am I doing something wrong?
Here's an example link: hidden link

#1805769

It will not work if you put the code in the "Output Editor" section. You will need to put it in the section before. Check this screenshot hidden link

#1805781
Screenshot 2020-10-09 at 14.55.13.png

Still can't get it to work.:(

#1805791
Screenshot 2020-10-09 at 14.55.13.png

Still can't get it to work.

#1805843

Can you allow me temporary access to your admin area to check this further? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

Please let me know what view you are working on.

#1805897
Screenshot 2020-10-09 at 15.46.29.png
Screenshot 2020-10-09 at 15.47.40.png
Screenshot 2020-10-09 at 15.48.22.png
Screenshot 2020-10-09 at 15.48.28.png

It sounds a bit complicated to create the backup / find all the details (admin/FTP) you needed. Where can I find these. Alternatively, I took some more screenshots, In case they could help you help me figure this out.

#1806101

You can create a backup for the hosting provider interface(cPanel) or using a plugin such as UpdraftPlus.

I won't need FTP access, I'll just need access to the website backend as an administrator. I set your next reply to be private.

The topic ‘[Closed] Importing images with urls’ is closed to new replies.