Support » Fixing WordPress » Integrating posts outside wordress but the meteor plugin won't work

  • I want to integrate posts from wordpress into our Cre Loaded e-commerce website. I have been somewhat successful in achieving this except in one post where I use the meteor slideshow plugin. The images from the slideshow appear on the page but the meteor slideshow itself isn’t working. Here is the code I use to display the post:

    /* Short and sweet */
    define(‘WP_USE_THEMES’, false);

    $post_id = 40;
    $queried_post = get_post($post_id);
    $content = $queried_post->post_content;
    $content = apply_filters(‘the_content’, $content);
    $content = str_replace(‘]]>’, ‘]]>’, $content);
    echo $content;

    I have been referencing the document on Integrating WordPress with Your Website. It indicates that I should include The Loop in posts in order to take advantage of template tags and/or plugins. However, if I include The Loop all of the content disappears.

    Does anyone know how to keep a plugin functioning if you are integrating it into a website outside of wordpress?

  • The topic ‘Integrating posts outside wordress but the meteor plugin won't work’ is closed to new replies.