Support

Account

Home Forums Front-end Issues Key changing on reload.

Unread

Key changing on reload.

  • Hello,
    I am trying to insert a slideshow using the slideshow plugin and using ACF to allow my user to select the correct slideshow from a drop down post.

    I’m using the following code to insert the slideshow into my template:

    	<?php $slidenumber = get_the_ID(get_field('Slide_content')); ?>
    	<?php do_action('slideshow_deploy', '$slidenumber'); ?>

    Which is a modification of this code

    <?php do_action('slideshow_deploy', '103'); ?>

    Which uses the post ID of the slideshow. I have a posts drop down menu set up in the admin area and my key is called Slide_content.

    Seems to work fine the first time, but when I hit refresh it changes to another slideshow every time.

    It’s totally possible I’m making a really basic php error, but the behaviour seems really odd to me, as if its saving a new key each time.

    Any help would be really appreciated.
    Cheers,
    Pete

Viewing 1 post (of 1 total)

The topic ‘Key changing on reload.’ is closed to new replies.