• I have a Blog that got 3 other blog’s linked. I want that whenever a new post is added in one of these blog, the main blog get an thumbnail and the_title in the sidebar.

    Im really near to accomplish, but im running through some problems.

    The main blog is: https://www.alphastage.net
    Im using PHP code plugin and including on the right sidebar:
    <?PHP include('sidenews.php'); ?>

    Then, comes the sidenews.php:

    <?php
    // Include WordPress
    define('WP_USE_THEMES', false);
    require_once('jornalmmg/wp-blog-header.php');
    query_posts('showposts=1');
    while (have_posts()) : the_post(); ?>
    <div class="thumbnails"><a href="https://www.makemegossip.com/jornalmmg" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php
    // this is where the custom field prints images for each Feature
    $values = get_post_custom_values("Image"); echo $values[0]; ?>-165x120.jpg" alt="" border="0"/></a>
    <a href="https://www.makemegossip.com/jornalmmg" rel="bookmark">
    <?php
    // this is where title of the Feature gets printed
    the_title(); ?></a></div>
    <?php endwhile; ?>

    Sidenews.php should call https://www.alphastage.net/jornalmmg, and it does work like a charm if you enter https://www.alphastage.net/sidenews.php.

    <b>But.</b> When i include it on the main blog, it ignores de “request” part and opens the_title() and etc from the main blog.

    How can i make the directions to the_title() and other tags call the /jornalmmg blog? Or else, how can i make the include process all information before getting into the main blog? This would solve the problem, but i dunno if CSS would be apllied.

    Please, help me, im burning my brain for days. rofl.

  • The topic ‘Thumbnails from posts on wordpress blog on another wordpress blog.’ is closed to new replies.