[Resolved] custom RSS2- trying to post “comment_post_ID” in a tag
I have been trying for a while now to post the value of the “comment_post_ID” (the comment’s post number) in a tag for wp-commentsrss2.php in the item area (line 53). I know that this value does exist because it is used in part of the link (<link><?php comment_link() ?></link>) tag. I’ve been able to do this in the wp-rss2.php file like this:
<postnum><?php the_ID(); ?></postnum>
When viewed in the xml it looks like this:
<postnum> 9 </postnum>
This is exactly what I want it to look like in the wp-commentsrss2.php file as well. Although no matter which way I try to do it, it doesn’t seem to work.
Anyone able to help me out?
- The topic ‘[Resolved] custom RSS2- trying to post “comment_post_ID” in a tag’ is closed to new replies.