Couldn’t you use something like the RSS Widget?
Will that allow me to limit how many titles it shows plus will it let me show the titles on pages that arent’ wordpress pages within the site?
From Design_Widgets_SubPanel
RSS 1 – displays an RSS Feed. Using RSS Widgets lists several feeds to use with this widget.
* Enter the RSS feed URL here — enter a complete feed URL, e.g. http://wordpress.org/development/feed/
* Give the feed a title (optional) — enter a description that appears over the list of feed items
* How many items would you like to display — enter the number of items from the feed you want displayed.
Ok I think I’m either lost or something. The RSS Widget requires me to enter an RSS feed URL. So I have my RSS feed of http://newtoniowa.com/news/?feed=rss2. That’s fine. But the problem I think you’re not getting is I need this to display on ALL the blogs pages and also on my NON-WordPress pages. That’s my issue.
Ok so I followed that best I could and I’m getting tons of errors now. You can go to http://www.newtoniowa.com and see for yourself.
See what I’ve done is I took the WordPress Classic theme and grabbed the code to display posts and then integrated it into my site. My WordPress Theme I made on my own only really uses the Main Index file and within it I have it set to call files in the main websites dir (for example I have a menu.php file for the regular site and a menu-blog.php for the blog sites to pull). Same for header, footer, left, and right files as well. By doing what the site you pointed me to says to do it’s trying to use the header file that came with WordPress which I’m not using anymore. So what would you suggest I do now?
By George I think I figured it out. Big DUH on my part. I just wiped my wp-blog-header.php file clear and all my problems are fixed. I did have to deactivate a plugin but that’s not a big deal as it was just the WordPress automatic upgrade plugin and I can just reactivate it when i need to use it.
EDIT: Ok so I SORTA figured it out. I’m still having one issue where if I go to the different blogs on my website the code for putting the 4 most recent posts on the left side works but it’s showing the 4 most recent posts for THAT blog not for the News blog whereas on the regular non WordPress website pages it’s only showing the News Blog’s 4 most recent posts. Any ideas? Plus I’m also just now noticing that while it’s displaying article titles on each blog’s page for that blog the blog itself is showing “Sorry, no posts matched your criteria” OMG now what’s wrong? LOL! If I remove the following code from the blog’s right side file the posts show up again no worries. But why?
[CODE]
<?php require(‘news/wp-blog-header.php’); ?>
<?php
$posts = get_posts(‘numberposts=4&order=ASC&orderby=post_title’);
foreach ($posts as $post) : start_wp(); ?>
<?php the_title(); ?>
<?php
endforeach;
?>[/CODE]
Any ideas over the weekend anyone?
I can’t believe that noone knows how to fix this? I just want to display the top 4 posts from a specific blog. It works fine on my main page that isn’t a wordpress page after adding in the necessary code given earlier in this thread but if I go to another blog on the side it’s displaying the top 4 posts from THAT blog and not from the blog I’m wanting it to display always from. This is the only part I need to work and then it’s finally where it needs to be.