WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Cleaner Gallery] Use Outside Of WordPress Theme (4 posts)

  1. johnnyrokkit
    Member
    Posted 3 years ago #

    Hello! Thanks in advance for your help.

    I have a site that I am building using WordPress as a CMS. Due to an unconventional approach to page loading, I was unable to get the site to behave as a WordPress theme.

    However, by including "wp-load.php" in my file I've been able to query and build pages using WordPress content while keeping the custom functionality.

    <?php
    // Include WordPress
    define('WP_USE_THEMES', false);
    require('path to/wp-load.php');
    ?>

    The challenge remaining is that galleries don't load properly, and I'm assuming any other content included in WP posts by use of a plugin will have the same problem. Is there a way to enable the use of WP plugins outside of a WP theme and outside of the WP directory?

    I am currently using Cleaner Gallery, and I imagine I'll be using Shadowbox and some other plugin for videos.

    A working test gallery in WordPress is here: http://u.nu/2xykd
    That gallery as it appears in the site: http://u.nu/2czkd (select page "2" from the temporary nav at top-left)

    Any help is appreciated!
    John

  2. johnnyrokkit
    Member
    Posted 3 years ago #

    I added an @import to the cleaner gallery CSS file and that helped clean it up quite a bit.

  3. subpost
    Member
    Posted 3 years ago #

    im struggling with the same problem, did you find a solution already?
    (in my case not Cleaner Gallery, but TDO miniforms)

  4. subpost
    Member
    Posted 3 years ago #

    sorry didnt see the 'resolved' at first. I also fixed it in the meantime!

Topic Closed

This topic has been closed to new replies.

About this Topic