Help - Search - Members - Calendar
Full Version: Problem with MTOtherBlog
Movable Type Community Forum > Additional Resources > Plugin Development and Usage
notsewmit
I'm using MTOtherBlog on my main blog (blog_id="1") to show posts from another blog (blog_id="2"). Here's my code:

CODE
<MTOtherBlog blog_id="2">
<MTEntries lastn="3">
 <div class="title"><$MTEntryTitle$></div>
 <div class="item">
  <$MTEntryBody words="10"$> <a href="<$MTEntryLink$>">(more...)</a>
 </div>
</MTEntries>
</MTOtherBlog>


If I go to my main page or individual archives, it works fine. When I go to my category or date-based archives, however, it is not working.

On the category archives, it lists all of the posts in blog_id="1" that are in the same category as the page I'm on.

On the date-based archives, it lists all of the posts in blog_id="1" that were posted in the same month as the page I'm on.

Does anyone know what is causing this?

Here are some links where the problem is occurring:
Category Links
http://www.tim-weston.com/archives/cat_movies.php
http://www.tim-weston.com/archives/cat_photos.php
http://www.tim-weston.com/archives/cat_quotes.php
http://www.tim-weston.com/archives/cat_technology.php
http://www.tim-weston.com/archives/cat_web_sites.php

Date-Based Links
http://www.tim-weston.com/archives/2004_01.php
girlie
As I recall, OtherBlog doesn't quite work in the archive pages. I can't find the thread I'm thinking of though.

Are you trying to get entries from the corresponding month and category from blog 2? Or just wanting the 3 most recent entries from blog 2 regardless of month or category?
notsewmit
I just want to show the three most recent entries from blog 2, regardless of month or category.
notsewmit
I've got it working now. I just created another Index Template with my OtherBlog code and then included it in all the necessary pages using PHP
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.