WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Andy Mercer
    Member
    Posted 1 year 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 1 year 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 1 year ago #

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

  4. cpres
    Member
    Plugin Author

    Posted 1 year 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 1 year ago #

    Wonderful, it works! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.