Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ludomancer

    (@ludomancer)

    Oookay. I’ve made progress, I think, but now I’ve hit a wall.

    Here’s the code I came up with:

    <?php
    /**
     * WoredPress Latest blog entries
     * @package WordPress
     */
    
    require( 'http://mydomain.com/web/blog/wp-load.php' ); // This is where my blog is.
    
    // Load the recent top 3 posts from the category gladiators-news
    query_posts( 'category_name=gladiators-news&showposts=3' );
    ?>
    
    <div id="blogPosts">
        <ul id="blogList">
            <?php if (have_posts()) : ?>
                <?php while (have_posts()) : the_post(); ?>
                    <li>
                    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
                    <?php the_title(); ?></a>
                    </li>
                <?php endwhile; ?>
            <?php endif; ?>
        </ul>
    </div>

    And here’s the HTML I’m using:

    <div id="blogPostsWrapper">Loading... </div>
    
    <script  type="text/javascript">
    	$.get('/wp-latest-blogs.php', function(data) {
    	  $('#blogPostsWrapper').html(data);
    	});
    </script>

    When I tried out the test page, I got an error message in the designated area:

    Warning: require() [function.require]: URL file-access is disabled in the server configuration in /var/www/clients/client30/web35/web/wp-latest-blogs.php on line 7

    Warning: require(http://www.ludocracy.ca/web/blog/wp-load.php) [function.require]: failed to open stream: no suitable wrapper could be found in /var/www/clients/client30/web35/web/wp-latest-blogs.php on line 7

    Fatal error: require() [function.require]: Failed opening required ‘http://www.ludocracy.ca/web/blog/wp-load.php&#8217; (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/clients/client30/web35/web/wp-latest-blogs.php on line 7

    Can anyone help me over the finish line?

    Thread Starter Ludomancer

    (@ludomancer)

    Thanks! I’ll try this out and post here about my success or failure.

Viewing 2 replies - 1 through 2 (of 2 total)