PRuddyArt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post Templates: get_template_part in a Child ThemeThanks Joy! That’s solved it! Bit daft that I hadn’t spotted they were on the same level, I figured it was something like that and kept checking the spellings!
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] ACF functions for IMG not linking to imageI eventually found this page in the documentation via a search ACF – images
I used the basic display
<?php $image = get_field('image'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?>Which has worked. I’m still unsure as to why the other methods failed in my case, and if they don’t work well generally, then maybe making this method more prominent in the documentation might be useful.
I wasn’t able to view the page which I found via a google search when I was working earlier in the day as the site was down, and I forgot I had that tab open till now.
I’ll probably put my website back onto coming soon, but hope anyone with a similar problem finds the link to the image page of the documentation useful.
Cheers
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] ACF functions for IMG not linking to imageWould help if I’d put the link in!