• I have wordpress on a subdirectory and want to reference it on the main page. I do not want to use standard wordpress forms because I want to control it differently than I control the main wordpress directory.

    I tried using an RSSParser in Dreamweaver to reference the website, but the parser wants a .rss file and as near as I can tell, wordpress feeds are .php files. I have used the Dreamweaver function before and it works on .rss, but not on anything else.

    I found another code example that should do exactly what i want it to do: a php line that calls on the following code (through a template)

    <?php
    /*
    Template Name: Latest
    */
    ?>
    <?php
    global $post;
    $myposts = get_posts(‘numberposts=4&category=8’);
    foreach($myposts as $post) :
    setup_postdata($post);
    ?>
    “><?php the_title(); ?>
    <?php endforeach; ?>

    I have the callout code on the main page and the code listed above in the ‘themes’ of the wordpress folders. I have the following code on the main page:

    <?php
    include(“blog/wp-content/themes/mine/latest-post.php”);
    ?>
    and it produces the following error:

    Warning: include() [function.include]: Failed opening ‘TEMPLATEPATH/blog/wp-content/themes/mine/latest.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.wycliffe/bmdavis/e.ner.gy/blog/wp-content/themes/mine/latest-post.php on line 2

    I need either a solution to the dreamweaver problem or a way to get the include_path right.

    Thanks…

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

The topic ‘‘include_path’ required for ‘include’’ is closed to new replies.