• I already have this code in the index.php file:

    <?php echo do_shortcode( “[anything_slides]” ); ?>

    But I am trying to get something like this inserted lower in the page:
    <?php echo do_shortcode( “[anything_slides cat=”blog-text”]” ); ?>

    Obviously, I get an error…
    Parse error: syntax error, unexpected T_STRING in /home/goldmin/public_html/1/wp-content/themes/main/index.php on line 6

    so is there any way to insert a customized slider directly in the php file?

    Thanks,
    Titus

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob Dubail

    (@jacobdubail)

    Hey titusbartos,

    You won’t need the php tags inside of the Page. Simply do this: [anything_slides cat="blog-text"]

    Let me know how you get on.

    Thanks,
    Jacob

    Thread Starter titusbartos

    (@titusbartos)

    Thanks for the reply, Jacob. I tried using that already, but no luck. Something (not a plugin) keeps my shortcodes from working. I’ll have to do more digging and figure out what’s causing that.

    Great plugin, by the way.
    Thanks!

    Titus

    Plugin Author Jacob Dubail

    (@jacobdubail)

    Thanks Titus,

    If you figure out what’s blocking your shortcodes, let me know. Always interested to hear about weird bugs like that.

    -Jacob

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a secondary slide in index.php’ is closed to new replies.