• Resolved lilven8

    (@lilven8)


    Hello all,

    I have been trying to figure this out for about a month and I feel like I’m close but just need a bit more information. So I have a network of about 4 to 5 blogs on my site https://www.themodernmixtape.com. I made the home page a static html page and everything looks good except for the “recent entries” section. I am trying to place the 1 most recent entry from each of the 4 extra blogs (the main page is also a wordpress blog but I am not using it as such).

    I came across a site that showed me how to pull the content from the MAIN blog but that’s not what I need. For example my network urls are like this:

    https://www.themodernmixtape.com
    https://www.themodernmixtape.com/theart/
    https://www.themodernmixtape.com/theblog/
    https://www.themodernmixtape.com/thefavs/
    https://www.themodernmixtape.com/theeco/

    Basically the code that I was told to put in my html was:

    <?php
                                // Include WordPress
                                define('WP_USE_THEMES', false);
                                require('https://themodernmixtape.com/wp-load.php');
                                query_posts('showposts=1');
                                ?>

    at the top of my page, and then to use:

    <?php while (have_posts()): the_post(); ?>
                                <h2><?php the_title(); ?></h2>
                                <?php the_excerpt(); ?>
                                <p><a href="<?php the_permalink(); ?>">Read more...</a></p>
                                <?php endwhile; ?>

    at the location where I want the content to show up.

    This worked to an extent, as it did pull up the one most recent entry BUT FROM MAIN BLOG which I’m not even using as a blog itself.

    Can anyone help me figure this out if possible? Plllleeeassse!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Recent Entries from Blogs in Network on CustomHTML Home Page’ is closed to new replies.