WordPress.org

Forums

Slideshow Satellite
[resolved] Theme PHP Embedding (5 posts)

  1. Andy Mercer
    Member
    Posted 2 years ago #

    Is there a way to put an auto-embed into a PHP template file? So that the user won't have to type [satellite] on every page?

    http://wordpress.org/extend/plugins/slideshow-satellite/

  2. cpres
    Member
    Plugin Author

    Posted 2 years ago #

    do_shortcode is the tool I prefer:
    http://codex.wordpress.org/Function_Reference/do_shortcode

    <?php
    echo do_shortcode('
    [satellite auto=on caption=off]
    ');
    ?>
  3. Andy Mercer
    Member
    Posted 2 years ago #

    I considered that but I do, the CSS and Javascript files don't get applied.

  4. cpres
    Member
    Plugin Author

    Posted 2 years ago #

    yeah you'll have to turn off the Shortcode Requirement under Advanced Settings if you do template embedding. Otherwise it reads through post content for the embed which there wouldn't be any.

    Of course there's also putting [satellite display=off] in the posts with the template in question

  5. Andy Mercer
    Member
    Posted 2 years ago #

    Wonderful, it works! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slideshow Satellite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.