Displaying Custom Field on Cloud Template

Posted in: Newspaper
Post count: 30

Hi,

I have created a cloud template on my website to create ‘profiles’ for football players. On top of the page there is a general section with some basic information, including a player foto. The photos are uploaded on our server and each foto or player has a ‘unique id’ (for example: https://fminside.net/images/news/DF11/19024412.png)

Instead of uploading each photo to a profile separately, I would like to use a custom field to have it automatically post the correct image in the profiles by filling in the ID of the player in that field when creating a new post. The ID that I put into the custom field needs to be added to an URL, which matches our database with pictures.

Example screen of where I want to display the image:
Example where i want the custom field to display

I tried to use a raw html component using:
>img src=”https://fminside.net/images/news/DF11/get_post_meta($fm20_player_id).png” /< (brackets put in wrong to show you the code)

But that did not do the trick.

1. How can I make the field display inside the posts?
2. Is it even possible to use a custom field like this?
3. Is there any other code I need to alter to have this displayed?

Thanks in advance

  • This topic was modified 6 years by LenFI.
Post count: 18283

Hello !

Unfortunately this options is not available and this issue seems to come directly from wordpress not rendering it. Newspaper theme does not have an option like this but if you will find the right code I don’t see a problem in applying it. We have not yet looked out for a feature like this so we cannot help you with a code.

Thank you !

Post count: 30

Ok thank you for the feedback.

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