Home Forums Add-ons Gallery Field Slideshow ACF


Slideshow ACF

  • Hey everyone. I’m new to ACF and wordpress coding and I’m trying to create a slideshow. But after some reading and trying different ways, I’m stuck.
    Hopefully someone wants to help me on the right track?

    This is my index page.

    <?php get_header();?>
    <?php $images = get_field('project-images'); ?>
      <?php if( $images ): ?>
       <div class="slideshow">
          <?php foreach( $images as $image ): ?>
             <img src="<?php echo $image['url']; ?>" />
          <?php endforeach; ?>
    <?php endif; ?>
    <script type="text/javascript">
    (function($) {
    <?php get_footer(); ?>

    And this is my header page:

    <!doctype html>
    <html <?php language_attributes(); ?>>
    	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
    	<link rel="profile" href="">
    	<link rel="stylesheet" type="text/css" href="//"/>
    	<script type="text/javascript" src="//"></script>
    	<?php wp_head(); ?>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.