Thanks Saurus, but the home page of ewfanati only has a “latest news” that’s hand-entered, then a link to the forum. I’m looking for code that would actually show the “latest news” category stuff on the main page of the site, not just the main page of the wordpress (blog) section.
Since I don’t know much about php, I’m not sure how to do that or if it can be done. The workaround is to just list, by hand, the latest news headlines that will link to the actual page. I’m trying to make this easy for my friend Jim, who owns the recording studio and did me a big favor on my new CD.
I tried adding this line in the table where the old news link was:
<td><p>SABELLA NEWS
<div id=”content”>
<?php include (‘wordpress\wp-content\themes\bytetips\site_main_index.php’); ?>
</div>
The file site_main_index.php is a derivative of the original index.php file from the bytetips theme, knocked down to:
<div id=”content”>
<?php if (have_posts()) : query_posts($query_string .’&cat=16′); ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<hr><small><b>By</b> <?php the_author() ?> ~ <?php the_time(‘F jS, Y’) ?>. <b>Filed under:</b> <?php the_category(‘, ‘) ?>. <?php edit_post_link(‘(edit)’); ?></small>
<div class=”entry”>
<?php the_content(‘Continue reading »’); ?>
</div>
<?php endwhile; ?>
Category 16 is “latest news”, so I thought by using “include” it might work. I thought wrong. On the test page, I got a string of errors, specifically:
Warning: main(wordpress\wp-content\themes\bytetips\site_main_index.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/sabellastudios.com/httpdocs/new_home.php on line 146
Warning: main(wordpress\wp-content\themes\bytetips\site_main_index.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/sabellastudios.com/httpdocs/new_home.php on line 146
Warning: main(): Failed opening ‘wordpress\wp-content\themes\bytetips\site_main_index.php’ for inclusion (include_path=’.:/usr/local/psa/apache/share/pear’) in /usr/local/psa/home/vhosts/sabellastudios.com/httpdocs/new_home.php on line 146
new_home.php is the test home page I used. So, is this not working because the path is incorrect? Or have I totally missed it?
Any help would be greatly appreciated. If you like blues and rock/blues, I’d be glad to compensate with a link where you can download the whole CD!
– Russ