Amrit,

I have set up the my-hacks as you direct. But it seems to be making problems (local machine test version).

This

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\wordpress\my-hacks.php:21) in c:\easyphp1-8\www\wordpress\wp-admin\link-manager.php on line 233

when i go to link-manager.php.

And this

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\wordpress\my-hacks.php:21) in
c:\easyphp1-8\www\wordpress\wp-admin\plugins.php on line 22

when I try to deactivate a plug in.

Have I put it in the correct directory? Is there some other thing I have wrong?

If I try to untick my-hacks in options>miscellaneous I get

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\wordpress\my-hacks.php:21) in c:\easyphp1-8\www\wordpress\wp-includes\pluggable-functions.php on line 247

Joseph


From: "Amrit"


Hi Joseph.

To display the titled link, create a file named (you don't need to but
it'll come handy in future) "my-hacks.php" and store the following
function in it and then save the file where all your Wordpress files are
saved:

<?php
function get_recent_posts($no_posts = 15, $show_pass_post = false,
$skip_posts = 0) {
global $wpdb, $tableposts;
$request = "SELECT ID, post_title FROM $tableposts WHERE post_status =
'publish' ";
if(!$show_pass_post) { $request .= "AND post_password ='' "; }
$request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts";
$posts = $wpdb->get_results($request);
$output = '';
foreach ($posts as $post) {
$post_title = stripslashes($post->post_title);
$permalink = get_permalink($post->ID);
$output .= '<li><a href="' . $permalink . '" rel="bookmark"
title="Permanent Link: ' . $post_title . '">' . $post_title . '</a></li>';
}
echo $output;
}
?>

Then go to your admin area, click Options and then Miscellaneous. Check
the option "Use legacy |my-hacks.php| file support" if it is not already
checked. Save the option, and then use the function wherever you want to.

Regarding your RSS feeds, they too must be in the same directory followed
by /feed/rss/ (or rss2).

Amrit
http://www.aboutwebdesigning.com

Joseph Harris wrote:
Some things take a long time. I have now set up a blog based on Wordpress
at http://www.looperman-is-ready.com/wordpress/index.php

1. Can you have a look and give a general comment.
2. Add a comment and so confirm registering works
3. Return to check it you are still registered
3. Is there a way to put article titles in r/h column?
4. Is there a way to substitute or add to 'Wordpress' in login page
5. Where do I look for instructions on facilitating RSS links [The codex
needs its own degree; it is good, but a-maze-ing]
6. Any other kind advice.

Joseph

Joseph Harris
toilet humor about the toilet
http://www.Looperman-is-ready.com
http://www.smilepoetryweekly.com
(family friendly humour)


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to