Phil Johnston
Forum Replies Created
-
Forum: Themes and Templates
In reply to: linking images to postsHey,
Im trying to take the same output of post-image and apply it to an RSS tag.
However, <?php post_image(); ?> does not seem to work with RSS.
Is there another way to call it from wp-rss2.php?Forum: Plugins
In reply to: custom RSS- attachment tag?This is very close to what I’m looking for:
https://guff.szub.net/2006/02/09/post-image/I want to do the same thing but with every attachment type
..and in the rss2 loop
I’ll keep working at it…
Forum: Plugins
In reply to: custom RSS- attachment tag?Hey,
I know that RSS readers will still be able to pick up the body, title and link to the article. The thing is, I’ve created an RSS reader for flash and I’m converting it so that videos, pictures, and audio get played in one player rather than loading 10 or more media players on one page.Forum: Plugins
In reply to: custom RSS- attachment tag?okay, for some reason the tags didn’t show up right in that post…
—–
[actualpost](square brackets are < and >)
POST TEXT<img alt=”picture.jpg” id=”image26″ src=”picture.thumbnail.jpg” />
[/actualpost]—–
*what i want it to look like is:
—–
[actualpost]
POST TEXT
[/actualpost][postattachment]
picture.jpg
[/postattachment]Forum: Plugins
In reply to: Cron Jobs – found something cool (I think)any way to embed the cron for wp-mail.php in that one?
Forum: Plugins
In reply to: Cron Jobs – found something cool (I think)I also tried the plugin- I can’t seem to figure out wget in order to initiate the cron.
Forum: Plugins
In reply to: Cron Jobs – found something cool (I think)Hey,
I tried them but I can’t seem to figure them out – I understand the cron programming – but I’m not sure how to actually get it working -eg. where to put it on my webspaceForum: Plugins
In reply to: custom RSS2- trying to post “comment_post_ID” in a tagOk,
I’ve been able to re-write the function
here it is:
function get_postnum($id = 0) {
$post = &get_post($id);$postnum = $post->ID;
if ( !empty($post->post_password) )
$postnum = sprintf(__(‘Protected: %s’), $postnum);return $postnum;
}
———————-use this as your tag:
<postnum><?php $postnum = get_postnum($comment->comment_post_ID);
printf(__(‘%1$s’), $postnum, get_comment_author_rss()); ?> </postnum>Forum: Plugins
In reply to: custom RSS2- trying to post “comment_post_ID” in a tagJust to let you know,
I finally found another way around to get this value.
I realised that the get_the_title function (in wpincludes/template-functions-post.php) HAD to be using the comment’s post ID number in order to get the title.So I changed the function called “get_the_title” (about line 31) from:
function get_the_title($id = 0) {
$post = &get_post($id);$title = $post->post_title;
if ( !empty($post->post_password) )
$title = sprintf(__(‘Protected: %s’), $title);return $title;
}
_________________________________________
to:function get_the_title($id = 0) {
$post = &get_post($id);$title = $post->ID;
if ( !empty($post->post_password) )
$title = sprintf(__(‘Protected: %s’), $title);return $title;
}
_____________________________________And then put this as my tag in ‘wp-commentsrss2.php’:
<postnum><?php $postnum = get_the_title($comment->comment_post_ID);
printf(__(‘%1$s’), $postnum, get_comment_author_rss()); ?> </postnum>It outputs exactly what I wanted – the number of the post that the comment is related to. I know this probably isn’t the best way to do it because it makes the ‘get_the_title’ function do something it’s not supposed to. But right now I don’t really care as long as it is working. I tried writing a new function in ‘template-functions-post.php but I’m pretty sure that some of the variables are the same as the get-the-title function. If anyone has better know-how about writing functions and wants to add this that would be sweet.
Phil
Forum: Plugins
In reply to: custom RSS2- trying to post “comment_post_ID” in a tagI didn’t know if it was actually showing up.
Forum: Plugins
In reply to: custom RSS2- trying to post “comment_post_ID” in a tagI’ve kept looking around and trying things but I can’t seem to find anything that works. Maybe some one could at least tell me if it is possible or not?
Forum: Plugins
In reply to: custom RSS2- trying to post “comment_post_ID” in a tagbump?
Forum: Plugins
In reply to: custom RSS2- trying to post “comment_post_ID” in a tagI guess another way to say it –
All I want is a way to get the value of comment_post_ID